summaryrefslogtreecommitdiff
path: root/tests/gem_storedw_loop.c
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2015-08-21 16:49:33 +0300
committerThomas Wood <thomas.wood@intel.com>2015-08-25 17:20:14 +0100
commit4c63f54de9b7f0a6d49807c15c63e952ac4afdf8 (patch)
tree399b9d85f3cbeb06cb7f996fc654fd93e0f4d630 /tests/gem_storedw_loop.c
parentd3d56bf2afb45fb8a5f5dabbf41ced53d21252f3 (diff)
gem_storedw_loop: Skip test if device doesn't have requested ring
The VEBOX ring is not available in generations before Haswell, so make tests that use it skip instead of fail in previous gens. Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests/gem_storedw_loop.c')
-rw-r--r--tests/gem_storedw_loop.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/gem_storedw_loop.c b/tests/gem_storedw_loop.c
index ee2f518b..22633975 100644
--- a/tests/gem_storedw_loop.c
+++ b/tests/gem_storedw_loop.c
@@ -166,11 +166,15 @@ igt_main
}
for (i = 0; i < ARRAY_SIZE(rings); i++) {
- igt_subtest_f("basic-%s", rings[i].name)
+ igt_subtest_f("basic-%s", rings[i].name) {
+ gem_require_ring(fd, rings[i].id);
store_test(rings[i].id, 16*1024);
+ }
- igt_subtest_f("long-%s", rings[i].name)
+ igt_subtest_f("long-%s", rings[i].name) {
+ gem_require_ring(fd, rings[i].id);
store_test(rings[i].id, 1024*1024);
+ }
}
close(fd);