]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit12f4849a1cfd69f3c37cca042f2e9c512f923741
tree7ed5df3ca69a5ff23359049dddfc526dcc83e7c8
parent5f581248159a005f194ef27aa44ad82d00ba7622
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