]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Reset planes for color management changes
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 1 May 2019 14:26:09 +0000 (10:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 May 2019 15:39:33 +0000 (10:39 -0500)
commit1b46be35b7470f1432f5213af7c0e516dbfd131e
tree76d7a0c4f31626539d8d5dacca96cb98728f2df3
parentb9002b8ecf8e0f1b26dc6f77b390ff565afe0f04
drm/amd/display: Reset planes for color management changes

[Why]
For commits with allow_modeset=false and CRTC degamma changes the planes
aren't reset. This results in incorrect rendering.

[How]
Reset the planes when color management has changed on the CRTC.
Technically this will include regamma changes as well, but it doesn't
really after legacy userspace since those commit with
allow_modeset=true.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c