summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-10-16 09:11:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-10-16 13:50:31 +0100
commitd4d976de7e022cb56a2dbfe96c4ab10549e24acc (patch)
treeec12333c20a4835e771400515e4e94c4b54211ca
parent7bf3bd728723b424ced55fa8d2cc3d87d8dc4cca (diff)
igt/gem_mocs_settings: Skip non-existent engines
For per-engine checks, check the engine actually exists (important for bsd aliasing). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101905 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
-rw-r--r--tests/gem_mocs_settings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_mocs_settings.c b/tests/gem_mocs_settings.c
index 05dfc637..cb99010d 100644
--- a/tests/gem_mocs_settings.c
+++ b/tests/gem_mocs_settings.c
@@ -374,6 +374,8 @@ static void run_test(int fd, unsigned engine, unsigned flags, unsigned mode)
uint32_t ctx_clean_id;
uint32_t ctx_dirty_id;
+ gem_require_ring(fd, engine);
+
/* Skip if we don't know where the registers are for this engine */
igt_require(get_engine_base(engine));