[Intel-gfx] [PATCH] igt tests/gem_exec_params: Test for -EINVAL for invalid platform and ring when executing RS

Abdiel Janulgue abdiel.janulgue at linux.intel.com
Tue May 6 23:40:53 CEST 2014


Add test that makes sure RS bit only gets executed on BDW and
on the render ring.

Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
 tests/gem_exec_params.c |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c
index 769969d..a3f765b 100644
--- a/tests/gem_exec_params.c
+++ b/tests/gem_exec_params.c
@@ -193,6 +193,17 @@ igt_main
 		execbuf.num_cliprects = 0;
 	}
 
+	igt_subtest("rs-not-gen8") {
+                igt_require(intel_gen(devid) != 8);
+                execbuf.flags = I915_EXEC_RENDER | I915_EXEC_RESOURCE_STREAMER;
+                RUN_FAIL(EINVAL);
+        }
+
+	igt_subtest("invalid-rs-ring") {
+		execbuf.flags = I915_EXEC_RESOURCE_STREAMER;
+		RUN_FAIL(EINVAL);
+	}
+
 #define DIRT(name) \
 	igt_subtest(#name "-dirt") { \
 		execbuf.flags = 0; \
-- 
1.7.9.5




More information about the Intel-gfx mailing list