diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-30 11:02:42 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-30 14:24:40 +0000 |
commit | 1384f8df232ae5232bf2db2de8cbd6f69b25236b (patch) | |
tree | c7878fe5ffd6bebb5cfe9ce7e288a353a4f7675a /lib/igt_gt.h | |
parent | 3714a967f69f7c7d6ec32e7b09f64ceb0a11bec1 (diff) |
i915: Rename legacy for_each_engine to for_each_ring
Improve the differentiation between the legacy ring selector ABI and the
more recent engine selection API.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Diffstat (limited to 'lib/igt_gt.h')
-rw-r--r-- | lib/igt_gt.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/igt_gt.h b/lib/igt_gt.h index e880cd4e..2ea360cc 100644 --- a/lib/igt_gt.h +++ b/lib/igt_gt.h @@ -65,32 +65,6 @@ unsigned intel_detect_and_clear_missed_interrupts(int fd); #define ALL_ENGINES ~0u /* Use in interfaces to iterate all engines */ -extern const struct intel_execution_engine { - const char *name; - const char *full_name; - unsigned exec_id; - unsigned flags; -} intel_execution_engines[]; - -#define eb_ring(e) ((e)->exec_id | (e)->flags) - -#define for_if(expr__) if (!(expr__)) {} else - -#define for_each_engine(it__, fd__) \ - for (const struct intel_execution_engine *it__ = intel_execution_engines;\ - it__->name; \ - it__++) \ - for_if (gem_has_ring(fd__, eb_ring(it__))) - -#define for_each_physical_engine(it__, fd__) \ - for (const struct intel_execution_engine *it__ = intel_execution_engines;\ - it__->name; \ - it__++) \ - for_if (gem_ring_has_physical_engine(fd__, eb_ring(it__))) - -bool gem_ring_is_physical_engine(int fd, unsigned int ring); -bool gem_ring_has_physical_engine(int fd, unsigned int ring); - bool gem_can_store_dword(int fd, unsigned int engine); bool gem_class_can_store_dword(int fd, int class); |