summaryrefslogtreecommitdiff
path: root/tests/gem_ring_sync_loop.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-01-23 09:44:19 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-01-27 14:45:18 +0000
commite3b68bb66683ad4cb4c80df904a3a21c98a2b6c2 (patch)
tree88a796e097456e3f1c3e8d821da1d91529626679 /tests/gem_ring_sync_loop.c
parent711398e82af469394559105a4f4c6dc21f582ffe (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_ring_sync_loop.c')
-rw-r--r--tests/gem_ring_sync_loop.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/gem_ring_sync_loop.c b/tests/gem_ring_sync_loop.c
index ca9f5687..52181951 100644
--- a/tests/gem_ring_sync_loop.c
+++ b/tests/gem_ring_sync_loop.c
@@ -35,14 +35,6 @@ IGT_TEST_DESCRIPTION("Basic check of ring<->ring write synchronisation.");
* Extremely efficient at catching missed irqs with semaphores=0 ...
*/
-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_loop(int fd)
{