summaryrefslogtreecommitdiff
path: root/lib/i915/gem_engine_topology.h
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2020-01-22 15:23:48 +0000
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2020-01-23 11:39:38 +0000
commit6fa36c0233afb2cf98ed41c2b2255ab484e79add (patch)
tree8ced2504bdd4e1bd0e942b1958b880122227c850 /lib/i915/gem_engine_topology.h
parent93bc97385ae25b112c34b11748a2b55fbfb0e87b (diff)
i915/gem_engine_topology: Generate engine names based on class
With the introduction of dynamic subtests we got one step closer towards eliminating the duality of static and dynamic engine enumeration. This patch makes one more step in that direction by removing the dependency on the static list when generating probed engine names. v2: * Fix __for_each_static_engine iterator. * Prefix unknown engines with 'unknown'. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Andi Shyti <andi.shyti@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/i915/gem_engine_topology.h')
-rw-r--r--lib/i915/gem_engine_topology.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/i915/gem_engine_topology.h b/lib/i915/gem_engine_topology.h
index d98773e0..525741cc 100644
--- a/lib/i915/gem_engine_topology.h
+++ b/lib/i915/gem_engine_topology.h
@@ -61,7 +61,7 @@ bool gem_engine_is_equal(const struct intel_execution_engine2 *e1,
struct intel_execution_engine2 gem_eb_flags_to_engine(unsigned int flags);
#define __for_each_static_engine(e__) \
- for ((e__) = intel_execution_engines2; (e__)->name; (e__)++)
+ for ((e__) = intel_execution_engines2; (e__)->name[0]; (e__)++)
#define for_each_context_engine(fd__, ctx__, e__) \
for (struct intel_engine_data i__ = intel_init_engine_list(fd__, ctx__); \