mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
Bail early from drm_wait_pending_flip if there's no pending flip
No need to process any events in that case. (Ported from amdgpu commit ca5eb9894fff153c0a1df7bdc4a4745713309e27)
This commit is contained in:
committed by
Michel Dänzer
parent
4c7d5e50a5
commit
5d5d883496
@@ -284,7 +284,8 @@ void radeon_drm_wait_pending_flip(xf86CrtcPtr crtc)
|
||||
|
||||
drmmode_crtc->wait_flip_nesting_level++;
|
||||
|
||||
while (!xorg_list_is_empty(&radeon_drm_flip_signalled)) {
|
||||
while (drmmode_crtc->flip_pending &&
|
||||
!xorg_list_is_empty(&radeon_drm_flip_signalled)) {
|
||||
e = xorg_list_first_entry(&radeon_drm_flip_signalled,
|
||||
struct radeon_drm_queue_entry, list);
|
||||
radeon_drm_queue_handle_one(e);
|
||||
|
||||
Reference in New Issue
Block a user