diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-02 11:05:21 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-02 11:17:13 +0000 |
commit | 4de67b26788c60c19254c3e69e151ee200453895 (patch) | |
tree | 566eda27dcfe0f8266ba1931681003b9b76d8642 /tests/gem_persistent_relocs.c | |
parent | 0517d877b65bade23332cba0828acae7ae5fccb9 (diff) |
igt: Mass conversion to to_user_pointer()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_persistent_relocs.c')
-rw-r--r-- | tests/gem_persistent_relocs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_persistent_relocs.c b/tests/gem_persistent_relocs.c index 509c812c..9c885307 100644 --- a/tests/gem_persistent_relocs.c +++ b/tests/gem_persistent_relocs.c @@ -171,14 +171,14 @@ static void faulting_reloc_and_emit(int fd, drm_intel_bo *target_bo, exec[1].handle = special_bo->handle; exec[1].relocation_count = 1; /* A newly mmap gtt bo will fault on first access. */ - exec[1].relocs_ptr = (uintptr_t)gtt_relocs; + exec[1].relocs_ptr = to_user_pointer(gtt_relocs); exec[1].alignment = 0; exec[1].offset = 0; exec[1].flags = 0; exec[1].rsvd1 = 0; exec[1].rsvd2 = 0; - execbuf.buffers_ptr = (uintptr_t)exec; + execbuf.buffers_ptr = to_user_pointer(exec); execbuf.buffer_count = 2; execbuf.batch_start_offset = 0; execbuf.batch_len = special_batch_len; |