diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-01 15:15:40 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-01 15:23:04 +0000 |
commit | 3e7a4e064e82f803a2be978541b3f1c181cbbbd3 (patch) | |
tree | 144a27eec9d65da10610dee71e0b989ab989f067 | |
parent | 893f4e0dd667c6080e220c541ff33fb2a04d5516 (diff) |
igt/kms_busy: Add more information about the state of the bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/kms_busy.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |