]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Assume active upper layer owns the HW cursor
authorKrunoslav Kovac <Krunoslav.Kovac@amd.com>
Tue, 22 Jun 2021 22:42:28 +0000 (18:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Jul 2021 17:39:25 +0000 (13:39 -0400)
commit22355b031ebadc38fce8c4b16ecf42542102d8f8
tree4c32ff31b29a71ad0521ea366e8ed110e42f80ec
parentaef5acd7303b5303d2cd9d94d81fdc7afa41a2b4
drm/amd/display: Assume active upper layer owns the HW cursor

[why]
The current logic checks if there's an upper pipe whose viewport
completely covers the current pipe viewport.
This fails in pipe splitting case as you can have layer 1 pipe that
crosses the two layer 0 pipes where it's contained in both, but neither
covers it completely, hence we allow the cursor on both layers.

[How]
Instead of trying to "sum up" rectangles from the higher level pipes
which could leave gaps and would not work generically, we will assume if
there's an upper layer that is active, it will control the HW cursor.

Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c