summaryrefslogtreecommitdiff
path: root/benchmarks/gem_exec_nop.c
diff options
context:
space:
mode:
authorDmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>2017-11-20 03:49:46 -0800
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2017-11-21 18:32:50 +0000
commitd0971c081d9d64465a85a2e6789cb69eecd232a8 (patch)
tree24a0382513cd8976353cbe6fd493b05e0a9ce952 /benchmarks/gem_exec_nop.c
parent4251f2fffa63b82a2715ad83eedba00c65f71f95 (diff)
benchmarks/gem_exec_nop: fix engines selection
Code on loop() function shadowed function parameter which led to inability to try out different engines in the test: we always loaded RCS0. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103804 Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks/gem_exec_nop.c')
-rw-r--r--benchmarks/gem_exec_nop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/gem_exec_nop.c b/benchmarks/gem_exec_nop.c
index 03a03541..8eb88c1f 100644
--- a/benchmarks/gem_exec_nop.c
+++ b/benchmarks/gem_exec_nop.c
@@ -106,11 +106,11 @@ static int loop(unsigned ring, int reps, int ncpus, unsigned flags)
return 77;
all_nengine = 0;
- for (ring = 1; ring < 16; ring++) {
+ for (unsigned r = 1; r < 16; r++) {
execbuf.flags &= ~ENGINE_FLAGS;
- execbuf.flags |= ring;
+ execbuf.flags |= r;
if (__gem_execbuf(fd, &execbuf) == 0)
- all_engines[all_nengine++] = ring;
+ all_engines[all_nengine++] = r;
}
if (ring == -1) {