[Intel-gfx] [PATCH v2 07/11] tests/gem_vmap_blits: Finish extracting gem_read

oscar.mateo at intel.com oscar.mateo at intel.com
Tue Nov 12 12:50:41 CET 2013


From: Oscar Mateo <oscar.mateo at intel.com>

It seems something escaped this commit:

commit bd5cf9a07d17ce91dfaa3aa12d3f2c93815f0489
Author: Daniel Vetter <daniel.vetter at ffwll.ch>
Date:   Tue Jan 10 15:37:53 2012 +0100

    lib/drmtest: extract gem_read

Signed-off-by: Oscar Mateo <oscar.mateo at intel.com>
---
 tests/gem_vmap_blits.c |   14 --------------
 1 file changed, 14 deletions(-)

diff --git a/tests/gem_vmap_blits.c b/tests/gem_vmap_blits.c
index 3e8e458..8dd8c61 100644
--- a/tests/gem_vmap_blits.c
+++ b/tests/gem_vmap_blits.c
@@ -87,20 +87,6 @@ static void gem_vmap_sync(int fd, uint32_t handle)
 }
 
 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];
-- 
1.7.9.5




More information about the Intel-gfx mailing list