summaryrefslogtreecommitdiff
path: root/tests/gem_evict_everything.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-11-04 12:06:17 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-11-04 12:08:50 +0000
commit6fff1f8787687a08f66c28007abe1f1edebd5124 (patch)
treec3d3ae2ee43ee8f8ba469c813687f44dd8fa60ff /tests/gem_evict_everything.c
parent676ccf862c4039f8e9cea8fb23bea053f9f5cf83 (diff)
ioctl_wrappers: Pass in offset to CPU mmaps
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_evict_everything.c')
-rw-r--r--tests/gem_evict_everything.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_evict_everything.c b/tests/gem_evict_everything.c
index c1eb3bde..db802373 100644
--- a/tests/gem_evict_everything.c
+++ b/tests/gem_evict_everything.c
@@ -131,7 +131,7 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo)
static void clear(int fd, uint32_t handle, int size)
{
- void *base = gem_mmap__cpu(fd, handle, size, PROT_READ | PROT_WRITE);
+ void *base = gem_mmap__cpu(fd, handle, 0, size, PROT_READ | PROT_WRITE);
igt_assert(base != NULL);
memset(base, 0, size);