diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-10 10:18:32 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-10 10:18:32 +0100 |
commit | dda85fb108469e3d3c8ce19751f928c70e9fba4c (patch) | |
tree | a711eaada22dc9d1713922482e3680bedb10300e /tests/gem_ring_sync_loop.c | |
parent | ce1a9f918ef2415562bf441c2b7d886c6eb865c4 (diff) |
tests: roll out igt_simple_init/igt_simple_main
Also use igt_skip a bit more to simplify some of the tests.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_ring_sync_loop.c')
-rw-r--r-- | tests/gem_ring_sync_loop.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/gem_ring_sync_loop.c b/tests/gem_ring_sync_loop.c index 152a6fee..95fcd305 100644 --- a/tests/gem_ring_sync_loop.c +++ b/tests/gem_ring_sync_loop.c @@ -90,17 +90,14 @@ store_dword_loop(int fd) drm_intel_bo_unmap(target_buffer); } -int main(int argc, char **argv) +igt_simple_main { int fd; int devid; fd = drm_open_any(); devid = intel_get_drm_devid(fd); - if (!HAS_BLT_RING(devid)) { - fprintf(stderr, "inter ring check needs gen6+\n"); - return 77; - } + gem_require_ring(fd, I915_EXEC_BLT); bufmgr = drm_intel_bufmgr_gem_init(fd, 4096); @@ -120,6 +117,4 @@ int main(int argc, char **argv) drm_intel_bufmgr_destroy(bufmgr); close(fd); - - return 0; } |