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

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

tests/i915/gem_concurrent_all.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/i915/gem_concurrent_all.c b/tests/i915/gem_concurrent_all.c
index 3ddaab820525..8a97564063e1 100644
--- a/tests/i915/gem_concurrent_all.c
+++ b/tests/i915/gem_concurrent_all.c
@@ -949,15 +949,15 @@ static igt_hang_t rcs_hang(void)
static igt_hang_t all_hang(void)
{
igt_hang_t hang = igt_hang_ring(fd, I915_EXEC_RENDER);
- unsigned engine;
+ const struct intel_execution_engine2 *e;

- for_each_physical_engine(fd, engine) {
+ __for_each_physical_engine(fd, e) {
struct drm_i915_gem_execbuffer2 eb = hang.spin->execbuf;

- if (engine == I915_EXEC_RENDER)
+ if (e->class == I915_ENGINE_CLASS_RENDER)
continue;

- eb.flags = engine;
+ eb.flags = e->flags;
__gem_execbuf(fd, &eb);