[PATCH xf86-video-amdgpu 3/3] Bail early from drm_wait_pending_flip if there's no pending flip
Michel Dänzer
michel at daenzer.net
Wed Aug 29 16:56:48 UTC 2018
From: Michel Dänzer <michel.daenzer at amd.com>
No need to process any events in that case.
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/amdgpu_drm_queue.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/amdgpu_drm_queue.c b/src/amdgpu_drm_queue.c
index ba841d1ef..61732b11c 100644
--- a/src/amdgpu_drm_queue.c
+++ b/src/amdgpu_drm_queue.c
@@ -284,6 +284,9 @@ void amdgpu_drm_wait_pending_flip(xf86CrtcPtr crtc)
drmmode_crtc->wait_flip_nesting_level++;
+ if (!drmmode_crtc->flip_pending)
+ return;
+
while (!xorg_list_is_empty(&amdgpu_drm_flip_signalled)) {
e = xorg_list_first_entry(&amdgpu_drm_flip_signalled,
struct amdgpu_drm_queue_entry, list);
--
2.18.0
More information about the amd-gfx
mailing list