summaryrefslogtreecommitdiff
path: root/tests/i915/gem_exec_nop.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-10-27 21:05:18 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2019-10-27 21:07:17 +0000
commit0c8d1ab4e0f79d9c59a0c0f8614cfa67050d0b9f (patch)
treeec0f3f09503afc22a6f5445a4fafdc97d998eed9 /tests/i915/gem_exec_nop.c
parentdef00442d5b9cbe6ca18ead23d80e8501d3fd517 (diff)
i915/gem_exec_nop: Fixup for_each_engine()
A couple of missed eb_ring(). Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> #for_each_engine
Diffstat (limited to 'tests/i915/gem_exec_nop.c')
-rw-r--r--tests/i915/gem_exec_nop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/i915/gem_exec_nop.c b/tests/i915/gem_exec_nop.c
index 1a6906f3..2ad8aeea 100644
--- a/tests/i915/gem_exec_nop.c
+++ b/tests/i915/gem_exec_nop.c
@@ -432,7 +432,6 @@ static void parallel(int fd, uint32_t handle, int timeout)
unsigned engines[16];
const char *names[16];
unsigned nengine;
- unsigned engine;
unsigned long count;
double time, sum;
@@ -443,7 +442,7 @@ static void parallel(int fd, uint32_t handle, int timeout)
names[nengine] = e->name;
nengine++;
- time = nop_on_ring(fd, handle, engine, 1, &count) / count;
+ time = nop_on_ring(fd, handle, eb_ring(e), 1, &count) / count;
sum += time;
igt_debug("%s: %.3fus\n", e->name, 1e6*time);
}
@@ -597,7 +596,7 @@ static void sequential(int fd, uint32_t handle, unsigned flags, int timeout)
for_each_physical_engine(e, fd) {
unsigned long count;
- time = nop_on_ring(fd, handle, n, 1, &count) / count;
+ time = nop_on_ring(fd, handle, eb_ring(e), 1, &count) / count;
sum += time;
igt_debug("%s: %.3fus\n", e->name, 1e6*time);