summaryrefslogtreecommitdiff
path: root/tests/i915/gem_cs_tlb.c
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@intel.com>2019-05-22 14:50:58 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2019-05-22 15:47:33 +0100
commitedc8921ec4f05019d77f28611439d9787315a979 (patch)
tree7d62daefc2f094e97666216f14e6f7dbd597524c /tests/i915/gem_cs_tlb.c
parent88318b0771f93f67d2b0c80101b0b083f3487876 (diff)
test/i915: gem_cs_tlb: use the gem_engine_topology library
Replace the legacy for_each_engine* defines with the ones implemented in the gem_engine_topology library. Signed-off-by: Andi Shyti <andi.shyti@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests/i915/gem_cs_tlb.c')
-rw-r--r--tests/i915/gem_cs_tlb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/i915/gem_cs_tlb.c b/tests/i915/gem_cs_tlb.c
index 51e1c4e19..13de5499f 100644
--- a/tests/i915/gem_cs_tlb.c
+++ b/tests/i915/gem_cs_tlb.c
@@ -140,7 +140,7 @@ static void run_on_ring(int fd, unsigned ring_id, const char *ring_name)
igt_main
{
- const struct intel_execution_engine *e;
+ const struct intel_execution_engine2 *e;
int fd = -1;
igt_skip_on_simulation();
@@ -150,9 +150,9 @@ igt_main
igt_require_gem(fd);
}
- for (e = intel_execution_engines; e->name; e++)
- igt_subtest_f("%s%s", e->exec_id ? "" : "basic-", e->name)
- run_on_ring(fd, e->exec_id | e->flags, e->name);
+ __for_each_physical_engine(fd, e)
+ igt_subtest_f("%s", e->name)
+ run_on_ring(fd, e->flags, e->name);
igt_fixture
close(fd);