mirror of
https://github.com/X11Libre/xf86-video-amdgpu.git
synced 2026-03-24 01:24:31 +00:00
Keep waiting for a pending flip if drm_handle_event returns 0
drm_wait_pending_flip stopped waiting if drm_handle_event returned 0, but that might have processed only some unrelated DRM events. As long as the flip is pending, we have to keep waiting for its completion event. Noticed while working on the previous fix. Acked-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
3ff2cc225f
commit
9045fb310f
@@ -325,7 +325,7 @@ void amdgpu_drm_wait_pending_flip(xf86CrtcPtr crtc)
|
||||
|
||||
while (drmmode_crtc->flip_pending
|
||||
&& amdgpu_drm_handle_event(pAMDGPUEnt->fd,
|
||||
&drmmode_crtc->drmmode->event_context) > 0);
|
||||
&drmmode_crtc->drmmode->event_context) >= 0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user