[PATCH i-g-t] gem_storedw_loop: Skip test if device doesn't have requested ring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 tests/gem_storedw_loop.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/gem_storedw_loop.c b/tests/gem_storedw_loop.c
index ee2f518..2263397 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);
-- 
2.4.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux