summaryrefslogtreecommitdiff
path: root/lib/i915/gem_engine_topology.h
diff options
context:
space:
mode:
authorRamalingam C <ramalingam.c@intel.com>2019-07-01 14:54:25 +0530
committerRamalingam C <ramalingam.c@intel.com>2019-07-08 17:07:23 +0530
commit2a66ae6626d5583240509f84117d1345a799b75a (patch)
tree84505e7f2199e3306e6f7d4fc2181a1020a9962b /lib/i915/gem_engine_topology.h
parent319675ccbbf3ed4f3f6929edbf5fd1a25b1f258a (diff)
tests/i915/gem_spin_batch: Update with engine discovery
Legacy execbuf abi tests are prefixed with legacy. New test are added to run on physical engines accessed through engine discovery. So legacy tests run on the unconfigured (with engine map) context and use a new helper gem_eb_flags_to_engine to look up the engine from the intel_execution_engines2 static list. This is only to enable the core test code to be shared. Places where new contexts are created had to be updated to either equally configure the contexts or not. v2: helper called gem_engine_is_equal is added [tvrtko] rebased to adopt the changte in eb_flag to engine [tvrtko] v3: returned the result of the expression itself [tvrtko] Signed-off-by: Ramalingam C <ramalingam.c@intel.com> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'lib/i915/gem_engine_topology.h')
-rw-r--r--lib/i915/gem_engine_topology.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/i915/gem_engine_topology.h b/lib/i915/gem_engine_topology.h
index 9b6e2d4f..d98773e0 100644
--- a/lib/i915/gem_engine_topology.h
+++ b/lib/i915/gem_engine_topology.h
@@ -55,6 +55,9 @@ 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,
+ const struct intel_execution_engine2 *e2);
+
struct intel_execution_engine2 gem_eb_flags_to_engine(unsigned int flags);
#define __for_each_static_engine(e__) \