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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Oscar Mateo <oscar.mateo@xxxxxxxxx>

It seems something escaped this commit:

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

    lib/drmtest: extract gem_read

Signed-off-by: Oscar Mateo <oscar.mateo@xxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux