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_userptr_blits.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_userptr_blits.c')
-rw-r--r-- | tests/gem_userptr_blits.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_userptr_blits.c b/tests/gem_userptr_blits.c index aabc68af..35394531 100644 --- a/tests/gem_userptr_blits.c +++ b/tests/gem_userptr_blits.c @@ -687,7 +687,7 @@ static void *umap(int fd, uint32_t handle) } else { uint32_t tmp = gem_create(fd, sizeof(linear)); copy(fd, tmp, handle, 0); - ptr = gem_mmap__cpu(fd, tmp, sizeof(linear), PROT_READ); + ptr = gem_mmap__cpu(fd, tmp, 0, sizeof(linear), PROT_READ); gem_close(fd, tmp); } |