[igt-dev] [PATCH i-g-t 4/5] lib/i915: Export engine to gt mapping
Umesh Nerlige Ramappa
umesh.nerlige.ramappa at intel.com
Fri Sep 22 21:52:32 UTC 2023
Some tests benefit from this helper. Export it.
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
---
lib/i915/gem_engine_topology.c | 2 +-
lib/i915/gem_engine_topology.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/i915/gem_engine_topology.c b/lib/i915/gem_engine_topology.c
index 7c6cd9ba9..a823e47a1 100644
--- a/lib/i915/gem_engine_topology.c
+++ b/lib/i915/gem_engine_topology.c
@@ -370,7 +370,7 @@ mtl_engine_to_gt_map(const struct i915_engine_class_instance *e)
}
}
-static int gem_engine_to_gt_map(int i915, const struct i915_engine_class_instance *engine)
+int gem_engine_to_gt_map(int i915, const struct i915_engine_class_instance *engine)
{
uint32_t devid = intel_get_drm_devid(i915);
diff --git a/lib/i915/gem_engine_topology.h b/lib/i915/gem_engine_topology.h
index 89642c317..8964ce5f7 100644
--- a/lib/i915/gem_engine_topology.h
+++ b/lib/i915/gem_engine_topology.h
@@ -61,6 +61,7 @@ intel_get_current_physical_engine(struct intel_engine_data *ed);
void intel_next_engine(struct intel_engine_data *ed);
+int gem_engine_to_gt_map(int i915, const struct i915_engine_class_instance *engine);
struct i915_engine_class_instance *
gem_list_engines(int i915,
uint32_t gt_mask,
--
2.38.1
More information about the igt-dev
mailing list