]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit93abec5484933f679e3cdf88401d4d7bad2a5d43
treebd41e5df1a65aa07edee29aa096bb70d66dc9abd
parenta0954be1217eac895c8ba5b6b29ebec2d6809f56
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