diff options
Diffstat (limited to 'tests/gem_evict_everything.c')
-rw-r--r-- | tests/gem_evict_everything.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_evict_everything.c b/tests/gem_evict_everything.c index 14668915..591b478b 100644 --- a/tests/gem_evict_everything.c +++ b/tests/gem_evict_everything.c @@ -107,10 +107,10 @@ copy(int fd, uint32_t dst, uint32_t src, uint32_t *all_bo, int n_bo) obj[n].handle = all_bo[n]; obj[n].handle = handle; obj[n].relocation_count = 2; - obj[n].relocs_ptr = (uintptr_t)reloc; + obj[n].relocs_ptr = to_user_pointer(reloc); memset(&exec, 0, sizeof(exec)); - exec.buffers_ptr = (uintptr_t)obj; + exec.buffers_ptr = to_user_pointer(obj); exec.buffer_count = n_bo + 1; if (HAS_BLT_RING(intel_get_drm_devid(fd))) exec.flags |= I915_EXEC_BLT; |