mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 02:45:34 +07:00
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>
This commit is contained in:
parent
e25228b02e
commit
7316c4ad29
@ -6354,6 +6354,10 @@ static bool should_reset_plane(struct drm_atomic_state *state,
|
||||
if (!new_crtc_state)
|
||||
return true;
|
||||
|
||||
/* CRTC Degamma changes currently require us to recreate planes. */
|
||||
if (new_crtc_state->color_mgmt_changed)
|
||||
return true;
|
||||
|
||||
if (drm_atomic_crtc_needs_modeset(new_crtc_state))
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user