mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
present: Also flush before using a flip to unflip
Not doing so might result in intermittently scanning out stale contents of the screen pixmap. (Ported from radeon commit 9a951a3e551db58ba50e7a594521ceac54d90615) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
f6a3c87c30
commit
b31489c086
@@ -366,6 +366,7 @@ amdgpu_present_unflip(ScreenPtr screen, uint64_t event_id)
|
||||
event->event_id = event_id;
|
||||
event->unflip = TRUE;
|
||||
|
||||
amdgpu_glamor_flush(scrn);
|
||||
if (amdgpu_do_pageflip(scrn, AMDGPU_DRM_QUEUE_CLIENT_DEFAULT, pixmap,
|
||||
event_id, event, -1, amdgpu_present_flip_event,
|
||||
amdgpu_present_flip_abort, FLIP_VSYNC, 0))
|
||||
|
||||
Reference in New Issue
Block a user