drm/amd/display: fix cursor calculation for 1xnY rotated display groups
authorSamson Tam <Samson.Tam@amd.com>
Fri, 30 Oct 2020 16:30:09 +0000 (12:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Nov 2020 17:19:01 +0000 (12:19 -0500)
commitaceeeea38a869845675e1a001e5915b5aaa5527a
treebd41e5df1a65aa07edee29aa096bb70d66dc9abd
parent89c5ca3b5e50acdb0ed69d8af2cf5a9b7e253dae
drm/amd/display: fix cursor calculation for 1xnY rotated display groups

[Why]
Cursor is missing on displays 2 and up when doing rotated
 display groups in 1xnY setup.  Calculation puts cursor
 out of bounds so it is not enabled.

[How]
In dcn10_set_cursor_position(), add in viewport.y into cursor
 calculations for 1xnY rotated display groups.
For pipe split, check viewport.y for both pipes and use lower one
 to normalize cursor position before calculations.
Add odm 2:1 support ( using same calculations as pipe split ).

Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c