[igt-dev] [RFC v2 30/43] tests/i915/gem_ring_sync_loop: use the gem_engine_topology library

Ramalingam C
2019-06-21T10:01:55Z

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));