mirror_ubuntu-kernels/drivers/gpu/drm/amd/display
Nicholas Kazlauskas e99acf7d1a drm/amd/display: Translate cursor position by source rect
[Why]
Cursor is drawn as part of the framebuffer for a plane on AMD hardware.
The cursor position on the framebuffer does not change even if the
source rect viewport for the cursor does. This causes the cursor to be
clipped.

The following IGT tests fail as a result of this issue:

- kms_plane_cursor@pipe-*-viewport-size-*

[How]
Offset cursor position by plane source rect viewport. If the viewport
is unscaled then the cursor is now correctly positioned on any
plane - primary or overlay.

There is still a hardware limitation for dealing with the cursor size
being incorrectly scaled but that's not something we can address.

Add some documentation explaining some of this in the code while we're
at it.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Zhan Liu <Zhan.Liu@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-04-07 14:20:45 -04:00
..
amdgpu_dm drm/amd/display: Avoid create MST prop after registration 2020-04-07 14:10:24 -04:00
dc drm/amd/display: Translate cursor position by source rect 2020-04-07 14:20:45 -04:00
dmub drm/amd/display: Allocate scratch space for DMUB CW7 2020-03-19 00:03:04 -04:00
include drm/amd/display: re-order asic declarations 2020-04-03 17:21:06 -04:00
modules drm/amd/display: LFC not working on 2.0x range monitors (v2) 2020-03-31 12:26:14 -04:00
Kconfig amdgpu: Enable initial DCN support on POWER 2019-12-18 16:09:05 -05:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00