summaryrefslogtreecommitdiff
path: root/tests/kms_cursor_legacy.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-06-22 18:23:17 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-06-22 18:23:45 +0100
commit987e1d56505b676530ecc667792c0f3c69b78f76 (patch)
tree882c5227e4846e8c1e5e5cf0bc67547a11233259 /tests/kms_cursor_legacy.c
parent4dd67c386398edac89936200b82b4dd7a1488acb (diff)
igt/kms_cursor_legacy: Detect pageflip errors
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_cursor_legacy.c')
-rw-r--r--tests/kms_cursor_legacy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c
index f94a0e11..7756b691 100644
--- a/tests/kms_cursor_legacy.c
+++ b/tests/kms_cursor_legacy.c
@@ -325,13 +325,13 @@ static void basic_flip(struct data *data)
igt_assert_eq(get_vblank(data->fd, 0, 0), vblank_start);
/* Start with a synchronous flip to align with the vblank */
- drmModePageFlip(data->fd, arg.crtc_id, fb_id, 0, NULL);
+ do_or_die(drmModePageFlip(data->fd, arg.crtc_id, fb_id, 0, NULL));
do_ioctl(data->fd, DRM_IOCTL_MODE_CURSOR, &arg);
vblank_start = get_vblank(data->fd, 0, 0);
/* Schedule a nonblocking flip for the next vblank */
- drmModePageFlip(data->fd, arg.crtc_id, fb_id,
- DRM_MODE_PAGE_FLIP_EVENT, NULL);
+ do_or_die(drmModePageFlip(data->fd, arg.crtc_id, fb_id,
+ DRM_MODE_PAGE_FLIP_EVENT, &fb_id));
igt_assert_eq(get_vblank(data->fd, 0, 0), vblank_start);
for (int n = 0; n < target; n++)