diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-23 09:44:19 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-27 14:45:18 +0000 |
commit | e3b68bb66683ad4cb4c80df904a3a21c98a2b6c2 (patch) | |
tree | 88a796e097456e3f1c3e8d821da1d91529626679 /tests/gem_sync.c | |
parent | 711398e82af469394559105a4f4c6dc21f582ffe (diff) |
lib: Share common __gem_execbuf()
An oft-repeated function to check EXECBUFFER2 for a particular fail
condition.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_sync.c')
-rw-r--r-- | tests/gem_sync.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/gem_sync.c b/tests/gem_sync.c index 8b7490d7..8450bcd0 100644 --- a/tests/gem_sync.c +++ b/tests/gem_sync.c @@ -65,14 +65,6 @@ out: return ts.tv_sec + 1e-9*ts.tv_nsec; } -static int __gem_execbuf(int fd, struct drm_i915_gem_execbuffer2 *eb) -{ - int err = 0; - if (drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, eb)) - err = -errno; - return err; -} - static void sync_ring(int fd, int ring, unsigned flags) { |