summaryrefslogtreecommitdiff
path: root/tests/gem_reloc_vs_gpu.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-01-02 11:05:21 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-01-02 11:17:13 +0000
commit4de67b26788c60c19254c3e69e151ee200453895 (patch)
tree566eda27dcfe0f8266ba1931681003b9b76d8642 /tests/gem_reloc_vs_gpu.c
parent0517d877b65bade23332cba0828acae7ae5fccb9 (diff)
igt: Mass conversion to to_user_pointer()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_reloc_vs_gpu.c')
-rw-r--r--tests/gem_reloc_vs_gpu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_reloc_vs_gpu.c b/tests/gem_reloc_vs_gpu.c
index e327a08b..ef898231 100644
--- a/tests/gem_reloc_vs_gpu.c
+++ b/tests/gem_reloc_vs_gpu.c
@@ -169,11 +169,11 @@ static void reloc_and_emit(int fd, drm_intel_bo *target_bo, bool faulting_reloc)
exec[1].relocation_count = 1;
/* A newly mmap gtt bo will fault on first access. */
if (faulting_reloc)
- exec[1].relocs_ptr = (uintptr_t)gtt_relocs;
+ exec[1].relocs_ptr = to_user_pointer(gtt_relocs);
else
- exec[1].relocs_ptr = (uintptr_t)reloc;
+ exec[1].relocs_ptr = to_user_pointer(reloc);
- execbuf.buffers_ptr = (uintptr_t)exec;
+ execbuf.buffers_ptr = to_user_pointer(exec);
execbuf.buffer_count = 2;
execbuf.batch_len = special_batch_len;
if (intel_gen(devid) >= 6)