summaryrefslogtreecommitdiff
path: root/present
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2017-09-27 01:19:58 -0400
committerAdam Jackson <ajax@redhat.com>2017-10-04 15:25:56 -0400
commit12fe3d3e9f494ef84832efe94ba00db92be499b1 (patch)
tree33977dd3ce4238f2be6b4b13104fd699701e9fa3 /present
parent388dc1aeac9acf2d51ad5103570beffd81d78b96 (diff)
present: Check the whole exec queue on event
Later events are sometimes added in front of the queue (e.g. if page flipping fails) so we need to check the whole queue on event. Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (cherry picked from commit c2f2b25ab55c67f9f3ad07c02fa746eae7c61196)
Diffstat (limited to 'present')
-rw-r--r--present/present.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/present/present.c b/present/present.c
index c9c68dcba..7d428fca7 100644
--- a/present/present.c
+++ b/present/present.c
@@ -543,8 +543,6 @@ present_event_notify(uint64_t event_id, uint64_t ust, uint64_t msc)
present_execute(vblank, ust, msc);
return;
}
- if (match < 0)
- break;
}
xorg_list_for_each_entry(vblank, &present_flip_queue, event_queue) {
if (vblank->event_id == event_id) {
@@ -1007,8 +1005,6 @@ present_abort_vblank(ScreenPtr screen, RRCrtcPtr crtc, uint64_t event_id, uint64
vblank->queued = FALSE;
return;
}
- if (match < 0)
- break;
}
xorg_list_for_each_entry(vblank, &present_flip_queue, event_queue) {
if (vblank->event_id == event_id) {