]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: PIP overlay corruption
authorMurton Liu <murton.liu@amd.com>
Wed, 23 Jan 2019 22:37:57 +0000 (17:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Feb 2019 18:30:28 +0000 (13:30 -0500)
commite6d2421343a78a3ef83d7839a8704dd2eb3c9a69
tree5f244b7417f99769180357e0565c1f69fb59e3da
parentde00d253bc85978c1a7d3be888d675488d18a5dd
drm/amd/display: PIP overlay corruption

[Why]
When moving mouse onto or off of pip plane,
screen would flash briefly due to garbage negative
pos values being programmed for cursor.
Also, text flashes due to PIP flips taking too long.

[How]
When negative pos value seen, default to 0 and adjust by modifying cursor hotspot.
For flip issue, only do post update when optimize required vs all the time.

Signed-off-by: Murton Liu <murton.liu@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Acked-by: Sivapiriyan Kumarasamy <Sivapiriyan.Kumarasamy@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubp.c