summaryrefslogtreecommitdiff
path: root/benchmarks/gem_latency.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/gem_latency.c')
-rw-r--r--benchmarks/gem_latency.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/benchmarks/gem_latency.c b/benchmarks/gem_latency.c
index 7975ade3..6cb16ba4 100644
--- a/benchmarks/gem_latency.c
+++ b/benchmarks/gem_latency.c
@@ -45,8 +45,6 @@
#include <sys/resource.h>
#include "drm.h"
-#define LOCAL_IOCTL_I915_GEM_EXECBUFFER2_WR DRM_IOWR(DRM_COMMAND_BASE + DRM_I915_GEM_EXECBUFFER2, struct drm_i915_gem_execbuffer2)
-
#define LOCAL_I915_EXEC_FENCE_IN (1<<16)
#define LOCAL_I915_EXEC_FENCE_OUT (1<<17)
@@ -103,20 +101,6 @@ inline static uint32_t read_timestamp(void)
}
#endif
-static int __gem_execbuf_wr(int _fd, struct drm_i915_gem_execbuffer2 *execbuf)
-{
- int err = 0;
- if (igt_ioctl(_fd, LOCAL_IOCTL_I915_GEM_EXECBUFFER2_WR, execbuf))
- err = -errno;
- errno = 0;
- return err;
-}
-
-static void gem_execbuf_wr(int _fd, struct drm_i915_gem_execbuffer2 *execbuf)
-{
- igt_assert_eq(__gem_execbuf_wr(_fd, execbuf), 0);
-}
-
struct consumer {
pthread_t thread;