drm/amd/display: Reject cursor plane on DCE when scaled differently than primary
authorTimur Kristóf <timur.kristof@gmail.com>
Sun, 18 Jan 2026 14:57:41 +0000 (15:57 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 12 Feb 2026 20:18:59 +0000 (15:18 -0500)
commit41af6215cdbcecd12920f211239479027904abf3
tree37e9152e7e76c4780bdab7ef758f7578a884ad44
parentf5a8292aab5be0f52b656ac393df4c26edac8e90
drm/amd/display: Reject cursor plane on DCE when scaled differently than primary

Currently DCE doesn't support the overlay cursor, so the
dm_crtc_get_cursor_mode() function returns DM_CURSOR_NATIVE_MODE
unconditionally. The outcome is that it doesn't check for the
conditions that would necessitate the overlay cursor, meaning
that it doesn't reject cases where the native cursor mode isn't
supported on DCE.

Remove the early return from dm_crtc_get_cursor_mode() for
DCE and instead let it perform the necessary checks and
return DM_CURSOR_OVERLAY_MODE. Add a later check that rejects
when DM_CURSOR_OVERLAY_MODE would be used with DCE.

Fixes: 1b04dcca4fb1 ("drm/amd/display: Introduce overlay cursor mode")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4600
Suggested-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rodrigo Siqueira <siqueira@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c