diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2019-01-24 18:31:40 +0100 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2019-01-25 17:54:53 +0100 |
commit | 9045fb310f88780e250e60b80431ca153330e61b (patch) | |
tree | a66932916fefc56792ac598f674d1b41687e3a64 | |
parent | 3ff2cc225f6bc08364ee007fa54e9d0150adaf11 (diff) |
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>
-rw-r--r-- | src/amdgpu_drm_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amdgpu_drm_queue.c b/src/amdgpu_drm_queue.c index 534ad32..0cf2224 100644 --- a/src/amdgpu_drm_queue.c +++ b/src/amdgpu_drm_queue.c @@ -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); } /* |