Skip to content
Commit c11b90ac authored by Dale Zhao's avatar Dale Zhao Committed by Greg Kroah-Hartman
Browse files

drm/amd/display: Refine condition of cursor visibility for pipe-split

[ Upstream commit 63f8bee4

 ]

[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: default avatarKrunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: default avatarMikita Lipski <mikita.lipski@amd.com>
Signed-off-by: default avatarDale Zhao <dale.zhao@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Stable-dep-of: d29fb7ba

 ("drm/amd/display: Add NULL plane_state check for cursor disable logic")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bf16debc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment