Commit 9045fb31 authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

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: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3ff2cc22
Pipeline #16348 passed with stages
in 1 minute and 8 seconds
......@@ -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);
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment