]> 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)
commit1f40b9ad42fe2046df3f49f26ed74c1ffc30804c
treebd41e5df1a65aa07edee29aa096bb70d66dc9abd
parente338be8f77783af41becfd086b6ee4cc1afe96c6
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