diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-04-26 08:30:04 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-04-26 08:30:52 +0100 |
commit | 2facc1368d5af8417e240f68153cecdfb5dc731a (patch) | |
tree | 43f743826af6110c63e5d00a5264ab218dde3a20 /tests/gem_ring_sync_loop.c | |
parent | cae610a2e5ab137229c666f435b7bcb4a67a423e (diff) |
Check for vebox support before testing
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63941
Diffstat (limited to 'tests/gem_ring_sync_loop.c')
-rw-r--r-- | tests/gem_ring_sync_loop.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/gem_ring_sync_loop.c b/tests/gem_ring_sync_loop.c index 3607fcae..7bb8cef9 100644 --- a/tests/gem_ring_sync_loop.c +++ b/tests/gem_ring_sync_loop.c @@ -55,7 +55,6 @@ static drm_intel_bo *target_buffer; #define MI_COND_BATCH_BUFFER_END (0x36<<23 | 1) #define MI_DO_COMPARE (1<<21) -#define LOCAL_I915_PARAM_HAS_VEBOX 22 static int get_num_rings(int fd) { @@ -82,10 +81,7 @@ get_num_rings(int fd) else goto skip; - gp.param = LOCAL_I915_PARAM_HAS_VEBOX; - ret = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp); - - if ((ret == 0) & (*gp.value > 0)) + if (gem_has_vebox(fd)) num_rings++; else goto skip; |