summaryrefslogtreecommitdiff
path: root/lib/i915/gem_engine_topology.h
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2020-01-23 13:10:01 +0000
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2020-01-27 09:16:01 +0000
commit88ba27126a3fa6f267fb722242ea313fad197436 (patch)
treee63487a920c6f9d55c6b0307697f4df3c7b6d3d5 /lib/i915/gem_engine_topology.h
parenteedff4ebbaac8de51728247311e534e67ce6b859 (diff)
i915/gem_engine_topology: Introduce and use gem_context_clone_with_engines
In test cases which create new contexts and submit work against them using the passed in engine index we are sometimes unsure whether this engine index was potentially created based on a default context with engine map configured (such as when under the __for_each_physical_engine iterator. To simplify test code we add gem_context/queue_clone_with_engines which is to be used in such scenario instead of the current pattern of gem_context_create followed by gem_context_set_all_engines (which is also removed by the patch). v2: * Fix swapped arguments to gem_context_clone. (Chris) Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Suggested-by: Chris Wilson <chris@chris-wilson.co.uk> 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, 0 insertions, 2 deletions
diff --git a/lib/i915/gem_engine_topology.h b/lib/i915/gem_engine_topology.h
index 525741cc..e40d7ec8 100644
--- a/lib/i915/gem_engine_topology.h
+++ b/lib/i915/gem_engine_topology.h
@@ -51,8 +51,6 @@ void intel_next_engine(struct intel_engine_data *ed);
int gem_context_lookup_engine(int fd, uint64_t engine, uint32_t ctx_id,
struct intel_execution_engine2 *e);
-void gem_context_set_all_engines(int fd, uint32_t ctx);
-
bool gem_context_has_engine_map(int fd, uint32_t ctx);
bool gem_engine_is_equal(const struct intel_execution_engine2 *e1,