summaryrefslogtreecommitdiff
path: root/tests/gem_fence_thrash.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_fence_thrash.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_fence_thrash.c')
-rw-r--r--tests/gem_fence_thrash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_fence_thrash.c b/tests/gem_fence_thrash.c
index 84b0f555..1fc05794 100644
--- a/tests/gem_fence_thrash.c
+++ b/tests/gem_fence_thrash.c
@@ -68,7 +68,7 @@ bo_create (int fd, int tiling)
handle = gem_create(fd, OBJECT_SIZE);
/* dirty cpu caches a bit ... */
- ptr = gem_mmap__cpu(fd, handle, OBJECT_SIZE, PROT_READ | PROT_WRITE);
+ ptr = gem_mmap__cpu(fd, handle, 0, OBJECT_SIZE, PROT_READ | PROT_WRITE);
igt_assert(ptr);
memset(ptr, 0, OBJECT_SIZE);
munmap(ptr, OBJECT_SIZE);