mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 14:23:03 +00:00
ioctl_wrappers: Pass in offset to CPU mmaps
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user