mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-04-14 11:04:42 +00:00
present: Flush before flipping
This isn't necessary for DRI clients, but the Present extension can also be used for presenting normal pixmaps rendered to via the X11 protocol. (Ported from radeon commit 9035b6abea557828e672ee455f0c84e43da0906f) Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
88725b68ca
commit
8d4d73e05c
@@ -327,6 +327,8 @@ amdgpu_present_flip(RRCrtcPtr crtc, uint64_t event_id, uint64_t target_msc,
|
||||
|
||||
event->event_id = event_id;
|
||||
|
||||
amdgpu_glamor_flush(scrn);
|
||||
|
||||
ret = amdgpu_do_pageflip(scrn, AMDGPU_DRM_QUEUE_CLIENT_DEFAULT,
|
||||
pixmap, event_id, event, crtc_id,
|
||||
amdgpu_present_flip_event,
|
||||
|
||||
Reference in New Issue
Block a user