drm/amd/display: Check all enabled planes in dm_check_crtc_cursor
authorMichel Dänzer <mdaenzer@redhat.com>
Tue, 12 Sep 2023 10:22:24 +0000 (12:22 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Sep 2023 19:38:30 +0000 (15:38 -0400)
commit003048ddf44b1a6cfa57afa5a0cf40673e13f1ba
tree6ea21e8a6eabb31bb251008ba9c84e27fad4bbe0
parenta2830b9e852f4007f7ee53f2c5765ab07ddb55e2
drm/amd/display: Check all enabled planes in dm_check_crtc_cursor

It was only checking planes which had any state changes in the same
commit. However, it also needs to check other enabled planes.

Not doing this meant that a commit might spuriously "succeed", resulting
in the cursor plane displaying with incorrect scaling. See
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3177#note_1824263
for an example.

Fixes: d1bfbe8a3202 ("amd/display: check cursor plane matches underlying plane")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c