diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-12 11:03:29 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-08-12 11:17:58 +0200 |
commit | 7847ea2965e548f7f68c6d7a88499bdb255a697f (patch) | |
tree | ab57251355f10ec894647eb4bb258b87e152928f /tests/gem_write_read_ring_switch.c | |
parent | 7553ad6e10f76aa703359a10e08138e14501d54d (diff) |
tests: use drmtest_skip to check for rings
To simplify things add a set of gem_check_<ring> functions which take
care of this. Since I've opted for static inlines drmtest.h grew a few
more header includes which was a neat opportunity to dump a few redundant
#defines.
This kills all the skipped_all hand-rolled logic we have.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_write_read_ring_switch.c')
-rw-r--r-- | tests/gem_write_read_ring_switch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_write_read_ring_switch.c b/tests/gem_write_read_ring_switch.c index 211b5300..bd50520c 100644 --- a/tests/gem_write_read_ring_switch.c +++ b/tests/gem_write_read_ring_switch.c @@ -151,11 +151,11 @@ static int has_ring(int ring) { switch (ring) { case I915_EXEC_RENDER: /* test only makes sense with separate blitter */ - return HAS_BLT_RING(intel_get_drm_devid(fd)); + return gem_check_blt(fd); case I915_EXEC_BSD: - return HAS_BSD_RING(intel_get_drm_devid(fd)); + return gem_check_bsd(fd); case LOCAL_I915_EXEC_VEBOX: - return gem_has_vebox(fd); + return gem_check_vebox(fd); default: return 0; } |