It seems something escaped this commit:
commit
bd5cf9a07d17ce91dfaa3aa12d3f2c93815f0489
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Tue Jan 10 15:37:53 2012 +0100
lib/drmtest: extract gem_read
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
}
static void
-gem_read(int fd, uint32_t handle, int offset, int size, void *buf)
-{
- struct drm_i915_gem_pread pread;
- int ret;
-
- pread.handle = handle;
- pread.offset = offset;
- pread.size = size;
- pread.data_ptr = (uintptr_t)buf;
- ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_PREAD, &pread);
- igt_assert(ret == 0);
-}
-
-static void
copy(int fd, uint32_t dst, uint32_t src)
{
uint32_t batch[10];