summaryrefslogtreecommitdiff
path: root/benchmarks/gem_wsim.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-05-17 10:35:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-05-17 10:36:58 +0100
commitd99fcfd3f0f505dc6352f658c95c3adf2566b3d0 (patch)
tree830ca7619f6cbac88e4417c618c62d6921f94f30 /benchmarks/gem_wsim.c
parent3a264fc85fed4c56ffef4958e6dca883cac3e1f5 (diff)
wsim: Only require execbuf wr ioctl for FENCE_OUT
Just a micro-optimisation to avoid copying back the struct to userspace if we aren't looking for an output. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks/gem_wsim.c')
-rw-r--r--benchmarks/gem_wsim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c
index 0ee679dd..13c029bf 100644
--- a/benchmarks/gem_wsim.c
+++ b/benchmarks/gem_wsim.c
@@ -1376,8 +1376,7 @@ do_eb(struct workload *wrk, struct w_step *w, enum intel_engine_id engine,
w->eb.rsvd2 = wrk->steps[tgt].emit_fence;
}
- if ((w->eb.flags & I915_EXEC_FENCE_IN) ||
- (w->eb.flags & I915_EXEC_FENCE_OUT))
+ if (w->eb.flags & I915_EXEC_FENCE_OUT)
gem_execbuf_wr(fd, &w->eb);
else
gem_execbuf(fd, &w->eb);