From 3e7a4e064e82f803a2be978541b3f1c181cbbbd3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 1 Dec 2016 15:15:40 +0000 Subject: igt/kms_busy: Add more information about the state of the bo Signed-off-by: Chris Wilson --- tests/kms_busy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/kms_busy.c') diff --git a/tests/kms_busy.c b/tests/kms_busy.c index a7e37007..1ae5d7fb 100644 --- a/tests/kms_busy.c +++ b/tests/kms_busy.c @@ -103,8 +103,10 @@ static void flip_to_fb(igt_display_t *dpy, int pipe, dpy->pipes[pipe].crtc_id, fb->fb_id, DRM_MODE_PAGE_FLIP_EVENT, fb)); kill(getppid(), SIGALRM); + igt_assert(gem_bo_busy(dpy->drm_fd, fb->gem_handle)); igt_assert_f(poll(&pfd, 1, TIMEOUT) == 0, - "flip completed whilst %s was busy\n", name); + "flip completed whilst %s was busy [%d]\n", + name, gem_bo_busy(dpy->drm_fd, fb->gem_handle)); } igt_assert_f(nanosleep(&tv, NULL) == -1, "flip to %s blocked waiting for busy fb", name); -- cgit v1.2.3