]> git.baikalelectronics.ru Git - kernel.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)
commit05c79abbdcb9d6fee9d3a86a2fd8ee9dcea588e2
tree5f244b7417f99769180357e0565c1f69fb59e3da
parentffd83c34b89db94521f723bbb7fc9c4803594362
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