From ee42e106fed8e04c61fed84cd1f75cd757afb093 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 5 Feb 2015 13:33:54 +0000 Subject: [PATCH] test: Tighten present checks to catch CRTC interchange bug in a single pass Signed-off-by: Chris Wilson --- test/present-test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/present-test.c b/test/present-test.c index 6b562eb0..dc399c39 100644 --- a/test/present-test.c +++ b/test/present-test.c @@ -410,15 +410,17 @@ static int test_crtc(Display *dpy, void *queue, uint64_t last_msc) printf("Testing each crtc, without waiting for each flip\n"); test.flags = 0; + test.msc = check_msc(dpy, test.win, test.queue, test.msc); err += for_each_crtc(dpy, __test_crtc, &test); + test.msc = check_msc(dpy, test.win, test.queue, test.msc); printf("Testing each crtc, waiting for flips to complete\n"); test.flags = SYNC; - err += for_each_crtc(dpy, __test_crtc, &test); - test.msc = check_msc(dpy, test.win, test.queue, test.msc); - dri3_fence_free(dpy, &test.fence); + err += for_each_crtc(dpy, __test_crtc, &test); + test.msc = check_msc(dpy, test.win, test.queue, test.msc); + dri3_fence_free(dpy, &test.fence); XSync(dpy, True); err += !!_x_error_occurred;