diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2830-drm-amd-display-fix-gamma-setting.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2830-drm-amd-display-fix-gamma-setting.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2830-drm-amd-display-fix-gamma-setting.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2830-drm-amd-display-fix-gamma-setting.patch new file mode 100644 index 00000000..52dd57d9 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2830-drm-amd-display-fix-gamma-setting.patch @@ -0,0 +1,35 @@ +From 3723dea80716c1558e4b53668d886be57f319fcf Mon Sep 17 00:00:00 2001 +From: Roman Li <Roman.Li@amd.com> +Date: Thu, 16 Nov 2017 17:22:39 -0500 +Subject: [PATCH 2830/4131] drm/amd/display: fix gamma setting + +Adding gamma changed check as condition for affected plane. +We ignored adding plane as affected if modeset was not required. +But for color management change we still need it. + +Change-Id: I08479794c4eab6ce0881f04af35ba55317151bef +Signed-off-by: Roman Li <Roman.Li@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Harry Wentland <harry.wentland@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +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 975a2e1..2de48df 100644 +--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c ++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +@@ -5273,7 +5273,8 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev, + #else + for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { + #endif +- if (!drm_atomic_crtc_needs_modeset(new_crtc_state)) ++ if (!drm_atomic_crtc_needs_modeset(new_crtc_state) && ++ !new_crtc_state->color_mgmt_changed) + continue; + + if (!new_crtc_state->enable) +-- +2.7.4 + |