drm/amd/display: Multiplane cursor position incorrect when plane rotated
authorAric Cyr <aric.cyr@amd.com>
Tue, 1 Jun 2021 22:44:50 +0000 (18:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Jun 2021 21:45:14 +0000 (17:45 -0400)
commitd9b20b45ec32fff5430cc57b28aa20136ef09d76
tree599567eab37d59793a450757295e9beae3e4a866
parent962f2f1ae273399e357a3192d5413ca57f9b4885
drm/amd/display: Multiplane cursor position incorrect when plane rotated

[Why]
When video plane is rotate the cursor position is incorrect and not
matching the desktop location.

[How]
When a plane is rotated 90 or 270 degrees, the src_rect.width and height
should be swapped when determining the scaling factor compared to the
dst_rect.

Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c