summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-02-05 13:33:54 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-02-05 13:41:13 +0000
commitee42e106fed8e04c61fed84cd1f75cd757afb093 (patch)
treee05277867f9ab93140368d210da94e2c78d67ba9 /test
parentca71ee06851058b86405c677c204790d0fb94e36 (diff)
test: Tighten present checks to catch CRTC interchange bug in a single pass
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/present-test.c6
1 files changed, 4 insertions, 2 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;
+ 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);
- dri3_fence_free(dpy, &test.fence);
+ dri3_fence_free(dpy, &test.fence);
XSync(dpy, True);
err += !!_x_error_occurred;