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_exec_gttfill.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_exec_gttfill.c')
-rw-r--r-- | tests/gem_exec_gttfill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_exec_gttfill.c b/tests/gem_exec_gttfill.c index 943f58da..5e84698e 100644 --- a/tests/gem_exec_gttfill.c +++ b/tests/gem_exec_gttfill.c @@ -65,7 +65,7 @@ static void submit(int fd, int gen, unsigned n; memset(&obj, 0, sizeof(obj)); - obj.relocs_ptr = (uintptr_t)reloc; + obj.relocs_ptr = to_user_pointer(reloc); obj.relocation_count = 2; memset(reloc, 0, 2*sizeof(*reloc)); @@ -97,7 +97,7 @@ static void submit(int fd, int gen, batch[++n] = 0; /* upper_32_bits(value) / nop */ batch[++n] = MI_BATCH_BUFFER_END; - eb->buffers_ptr = (uintptr_t)&obj; + eb->buffers_ptr = to_user_pointer(&obj); for (unsigned i = 0; i < count; i++) { obj.handle = handles[i]; reloc[0].target_handle = obj.handle; |