From e3b68bb66683ad4cb4c80df904a3a21c98a2b6c2 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 23 Jan 2016 09:44:19 +0000 Subject: lib: Share common __gem_execbuf() An oft-repeated function to check EXECBUFFER2 for a particular fail condition. Signed-off-by: Chris Wilson --- benchmarks/gem_blt.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'benchmarks/gem_blt.c') diff --git a/benchmarks/gem_blt.c b/benchmarks/gem_blt.c index 820695c9..0d1c54d4 100644 --- a/benchmarks/gem_blt.c +++ b/benchmarks/gem_blt.c @@ -178,14 +178,6 @@ static int gem_linear_blt(int fd, return (b+2 - batch) * sizeof(uint32_t); } -static int __gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf) -{ - int err = 0; - if (drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf)) - err = -errno; - return err; -} - static int run(int object, int batch, int time, int reps) { struct drm_i915_gem_execbuffer2 execbuf; -- cgit v1.2.3