mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 22:32:57 +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
@@ -116,7 +116,7 @@ static void run_on_ring(int fd, unsigned ring_id, const char *ring_name)
|
||||
igt_progress(buf, split, BATCH_SIZE/8 - 1);
|
||||
|
||||
handle_new = gem_create(fd, BATCH_SIZE);
|
||||
batch_ptr = gem_mmap__cpu(fd, handle_new, BATCH_SIZE,
|
||||
batch_ptr = gem_mmap__cpu(fd, handle_new, 0, BATCH_SIZE,
|
||||
PROT_READ | PROT_WRITE);
|
||||
batch_ptr[split*2] = MI_BATCH_BUFFER_END;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user