[igt-dev] [RFC v2 30/43] tests/i915/gem_ring_sync_loop: use the gem_engine_topology library
Ramalingam C
ramalingam.c at intel.com
Fri Jun 21 10:03:32 UTC 2019
Replace the legacy for_each_engine* defines with the ones
implemented in the gem_engine_topology library.
Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
---
tests/i915/gem_ring_sync_loop.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/i915/gem_ring_sync_loop.c b/tests/i915/gem_ring_sync_loop.c
index 118f3638ab98..3982cf9b9319 100644
--- a/tests/i915/gem_ring_sync_loop.c
+++ b/tests/i915/gem_ring_sync_loop.c
@@ -44,12 +44,12 @@ sync_loop(int fd)
struct drm_i915_gem_relocation_entry reloc[1];
unsigned engines[16];
unsigned nengine;
- unsigned engine;
+ const struct intel_execution_engine2 *engine;
int i;
nengine = 0;
- for_each_physical_engine(fd, engine)
- engines[nengine++] = engine;
+ __for_each_physical_engine(fd, engine)
+ engines[nengine++] = engine->flags;
igt_require(nengine);
memset(object, 0, sizeof(object));
--
2.19.1
More information about the igt-dev
mailing list