]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Refine condition of cursor visibility for pipe-split
authorDale Zhao <dale.zhao@amd.com>
Mon, 23 Aug 2021 08:44:37 +0000 (16:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Sep 2021 19:57:10 +0000 (15:57 -0400)
commit92c05ee1fab359179110c38bd7b99f98909a13c0
tree5da97de427126ac0c12e91fec02e95800a427085
parenta6011e22856c60695450bccc89a40a6b1dd7206e
drm/amd/display: Refine condition of cursor visibility for pipe-split

[Why]
In some scenarios like fullscreen game, major plane is scaled. Then
if a upper layer owns the cursor, cursor is invisiable in the
majority of the screen.

[How]
Instead assuming upper plane handles cursor, summing up upper
split planes on the same layer. If whole upper plane covers current
half/whole pipe plane, disable cursor.

Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Dale Zhao <dale.zhao@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