[PATCH i-g-t] i915/gem_ctx_shared: Use the supplied ring for smoketest

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

 



Allow the subtests that want to limit the test to a single engine, to
limit the test to a single engine.

Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Cc: Mika Kuoppala <mika.kuoppala@xxxxxxxxxxxxxxx>
---
 tests/i915/gem_ctx_shared.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c
index 6d8cbcce2..4d9ffafce 100644
--- a/tests/i915/gem_ctx_shared.c
+++ b/tests/i915/gem_ctx_shared.c
@@ -740,8 +740,12 @@ static void smoketest(int i915, unsigned ring, unsigned timeout)
 	uint32_t *ptr;
 
 	nengine = 0;
-	for_each_physical_engine(e, i915)
-		engines[nengine++] = eb_ring(e);
+	if (ring == -1) {
+		for_each_physical_engine(e, i915)
+			engines[nengine++] = eb_ring(e);
+	} else {
+		engines[nengine++] = ring;
+	}
 	igt_require(nengine);
 
 	scratch = gem_create(i915, 4096);
-- 
2.24.0.rc2

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




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux