[Intel-gfx] [PATCH i-g-t 3/3] lib/i915: Pick a subtest conformant name for an unknown engine
Chris Wilson
chris at chris-wilson.co.uk
Mon Jul 6 12:15:20 UTC 2020
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 at chris-wilson.co.uk>
---
lib/i915/gem_engine_topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/i915/gem_engine_topology.c b/lib/i915/gem_engine_topology.c
index 2c0ae5a25..6c5fbe817 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);
}
--
2.27.0
More information about the Intel-gfx
mailing list