diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2021-04-15 14:06:27 -0500 |
---|---|---|
committer | Jason Ekstrand <jason@jlekstrand.net> | 2021-07-08 12:45:33 -0500 |
commit | 3eae7848c89161d1cc66c88c90bc558e56df691b (patch) | |
tree | 5024130f0872641896a5027a36810bd8f79267f2 /lib/i915/gem_engine_topology.h | |
parent | d1cff0549a825d8bfe9b42ce3108dfb246528b3e (diff) |
lib/i915: Rework engine API availability checks (v4)
Instead of relying on the context param, check for the device query or
attempt to set engines as a create param.
v2 (Jason Ekstrand):
- Add a common gem_has_context_engines helper
v3 (Jason Ekstrand):
- Drop gem_has_context_engines and always check I915_QUERY_ENGINE_INFO
v4 (Ashutosh Dixit):
- Add a comment to the gem_has_engine_topology docs saying that it can
be used to query either feature.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'lib/i915/gem_engine_topology.h')
-rw-r--r-- | lib/i915/gem_engine_topology.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/i915/gem_engine_topology.h b/lib/i915/gem_engine_topology.h index 991d0ff8..4cfab560 100644 --- a/lib/i915/gem_engine_topology.h +++ b/lib/i915/gem_engine_topology.h @@ -61,8 +61,6 @@ intel_get_current_physical_engine(struct intel_engine_data *ed); void intel_next_engine(struct intel_engine_data *ed); -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); |