lib/drmtest: extract gem_read

Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2012-01-10 15:37:53 +01:00
parent 319638ba6d
commit bd5cf9a07d
10 changed files with 20 additions and 105 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ check_cpu(uint32_t *ptr, uint32_t val)
static void
check_gpu(int fd, uint32_t handle, uint32_t val)
{
gem_read(fd, handle, 0, sizeof(linear), linear);
gem_read(fd, handle, 0, linear, sizeof(linear));
check_cpu(linear, val);
}