diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-01-10 15:31:11 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-01-10 15:31:11 +0100 |
commit | 319638ba6d38c25be0f6dadbab3f5855083234a1 (patch) | |
tree | c779bc7fd8b914513f02ce3fa98be9c51724d02d /tests/gem_tiled_pread_pwrite.c | |
parent | 5dd17d3f4bddb075f3fb6fbcd1b6c271f7b746a7 (diff) |
lib/drmtest: extract gem_write
Astonishing how many different function signatures are possible for
something that simple.
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_tiled_pread_pwrite.c')
-rw-r--r-- | tests/gem_tiled_pread_pwrite.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/gem_tiled_pread_pwrite.c b/tests/gem_tiled_pread_pwrite.c index b10eaa49..74e230e5 100644 --- a/tests/gem_tiled_pread_pwrite.c +++ b/tests/gem_tiled_pread_pwrite.c @@ -95,19 +95,6 @@ static void *gem_mmap(int fd, uint32_t handle, int size, int prot) return ptr; } -static int gem_write(int fd, - uint32_t handle, uint32_t offset, - const void *src, int length) -{ - struct drm_i915_gem_pwrite pwrite; - - pwrite.handle = handle; - pwrite.offset = offset; - pwrite.size = length; - pwrite.data_ptr = (uintptr_t)src; - return drmIoctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &pwrite); -} - static void gem_read(int fd, uint32_t handle, int offset, int length, void *buf) { |