From 59f98997ab315465a052ed11e43ed7f6b0ec708a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 25 Jan 2016 13:15:36 -0800 Subject: igt: Add a helper function for creating VC4 BOs. v2: Use do_ioctl(). Signed-off-by: Eric Anholt Reviewed-by: Daniel Stone --- tests/vc4_wait_bo.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'tests/vc4_wait_bo.c') diff --git a/tests/vc4_wait_bo.c b/tests/vc4_wait_bo.c index 04828ed6..1b924642 100644 --- a/tests/vc4_wait_bo.c +++ b/tests/vc4_wait_bo.c @@ -22,6 +22,7 @@ */ #include "igt.h" +#include "igt_vc4.h" #include #include #include @@ -39,14 +40,8 @@ igt_main int bo_handle; igt_fixture { - struct drm_vc4_create_bo create = { - .size = 4096, - }; - fd = drm_open_driver(DRIVER_VC4); - - do_ioctl(fd, DRM_IOCTL_VC4_CREATE_BO, &create); - bo_handle = create.handle; + bo_handle = igt_vc4_create_bo(fd, 4096); } igt_subtest("bad-bo") { -- cgit v1.2.3