mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-24 06:43:01 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user