]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: check cursor scaling
authorSimon Ser <contact@emersion.fr>
Fri, 20 Nov 2020 20:18:59 +0000 (20:18 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:09:52 +0000 (12:09 -0500)
commit38ddbb3fa341e8baf942b3aebd62040ecbcb28b4
tree7ed5df3ca69a5ff23359049dddfc526dcc83e7c8
parentf36e8018011339489482854ecf81a993eb3ed8d5
drm/amd/display: check cursor scaling

Don't allow user-space to set different scaling parameters for the
cursor plane and for the primary plane. Because of DCE/DCN design,
it's not possible to have a mismatch.

The old check in dm_update_plane_state is superseded by this new
check.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c