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

Ramalingam C ramalingam.c at intel.com
Fri Jun 21 10:03:12 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_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);
 	}
 
-- 
2.19.1



More information about the igt-dev mailing list