summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-07-06 13:06:55 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2020-07-26 23:31:14 +0100
commitea6297d497d0667da9867f2275051bc866d96c92 (patch)
treed8b603629cd484408b6e94839548ad571b5f8a63
parent4a6dcd837e9e742c139dfbdfd50a0134a2c8cae3 (diff)
lib/i915: Pick a subtest conformant name for an unknown engine
IGT disallows ':' in its subtest names, and as we use the engine name for dynamic subtest names, pick a name that doesn't accidentally cause IGT to assert (even when those tests are not being run). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
-rw-r--r--lib/i915/gem_engine_topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/i915/gem_engine_topology.c b/lib/i915/gem_engine_topology.c
index 76222186c..63e1b7ddc 100644
--- a/lib/i915/gem_engine_topology.c
+++ b/lib/i915/gem_engine_topology.c
@@ -136,7 +136,7 @@ static void init_engine(struct intel_execution_engine2 *e2,
} else {
igt_debug("found unknown engine (%d, %d)\n", class, instance);
e2->flags = -1;
- ret = snprintf(e2->name, sizeof(e2->name), "%u:%u",
+ ret = snprintf(e2->name, sizeof(e2->name), "c%u_%u",
class, instance);
}