diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-11-04 12:06:17 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-11-04 12:08:50 +0000 |
commit | 6fff1f8787687a08f66c28007abe1f1edebd5124 (patch) | |
tree | c3d3ae2ee43ee8f8ba469c813687f44dd8fa60ff /tests/gem_mmap.c | |
parent | 676ccf862c4039f8e9cea8fb23bea053f9f5cf83 (diff) |
ioctl_wrappers: Pass in offset to CPU mmaps
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_mmap.c')
-rw-r--r-- | tests/gem_mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_mmap.c b/tests/gem_mmap.c index 33ffe452..bbc5c4cf 100644 --- a/tests/gem_mmap.c +++ b/tests/gem_mmap.c @@ -93,7 +93,7 @@ igt_main igt_subtest("short-mmap") { igt_assert(OBJECT_SIZE > 4096); handle = gem_create(fd, OBJECT_SIZE); - addr = gem_mmap__cpu(fd, handle, 4096, PROT_WRITE); + addr = gem_mmap__cpu(fd, handle, 0, 4096, PROT_WRITE); memset(addr, 0, 4096); munmap(addr, 4096); gem_close(fd, handle); |