]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Fix rotated cursor offset calculation
authorDavid Galiffi <David.Galiffi@amd.com>
Thu, 10 Nov 2022 19:40:20 +0000 (14:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Nov 2022 14:01:53 +0000 (09:01 -0500)
commita26a54fbe32b564ff868710d59fbe1a387a2cc7c
treed8d07ccf0f949bba9b24414a997d6d3160ef5264
parente667ee3b0c049bf0c69426879586a2572bb28d26
drm/amd/display: Fix rotated cursor offset calculation

[Why]
Underflow is observed when cursor is still enabled when the cursor
rectangle is outside the bounds of it's surface viewport.

[How]
Update parameters used to determine when cursor should be disabled.

Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: David Galiffi <David.Galiffi@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_dpp.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubp.c