public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH igt] igt/gem_mocs_settings: Skip non-existent engines
@ 2017-10-16  8:12 Chris Wilson
  2017-10-16  8:29 ` Michał Winiarski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Chris Wilson @ 2017-10-16  8:12 UTC (permalink / raw)
  To: intel-gfx

For per-engine checks, check the engine actually exists (important for
bsd aliasing).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/gem_mocs_settings.c | 2 ++
 1 file changed, 2 insertions(+)

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));
 
-- 
2.15.0.rc0

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-16 12:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-16  8:12 [PATCH igt] igt/gem_mocs_settings: Skip non-existent engines Chris Wilson
2017-10-16  8:29 ` Michał Winiarski
2017-10-16  9:10 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-10-16 12:37 ` ✗ Fi.CI.IGT: warning " Patchwork
2017-10-16 12:49   ` Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox