Re: [PATCH] drm/amd/display: Set color_mgmt_changed to true on unsuspend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2023-11-02 00:21, Joshua Ashton wrote:
> Otherwise we can end up with a frame on unsuspend where color management
> is not applied when userspace has not committed themselves.
> 
> Fixes re-applying color management on Steam Deck/Gamescope on S3 resume.
> 
> Signed-off-by: Joshua Ashton <joshua@xxxxxxxxx>

Going through old emails and found this.

Reviewed-by: Harry Wentland <harry.wentland@xxxxxxx>

Pulling it into amd-staging-drm-next.

Harry

> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index adbeb2c897b5..ae650707f234 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -2967,6 +2967,7 @@ static int dm_resume(void *handle)
>  			dc_stream_release(dm_new_crtc_state->stream);
>  			dm_new_crtc_state->stream = NULL;
>  		}
> +		dm_new_crtc_state->base.color_mgmt_changed = true;
>  	}
>  
>  	for_each_new_plane_in_state(dm->cached_state, plane, new_plane_state, i) {




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux