diff options
Diffstat (limited to 'tests/gem_bad_length.c')
-rw-r--r-- | tests/gem_bad_length.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/gem_bad_length.c b/tests/gem_bad_length.c index 167128d5..2cc5187b 100644 --- a/tests/gem_bad_length.c +++ b/tests/gem_bad_length.c @@ -64,22 +64,6 @@ static uint32_t gem_create(int fd, int size, int *retval) return create.handle; } -static void gem_write(int fd, - uint32_t handle, uint32_t offset, - const void *src, int length) -{ - struct drm_i915_gem_pwrite arg; - int ret; - - arg.handle = handle; - arg.offset = offset; - arg.size = length; - arg.data_ptr = (uintptr_t)src; - - ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &arg); - assert(ret == 0); -} - static int gem_exec(int fd, struct drm_i915_gem_execbuffer2 *execbuf) { return drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf); |