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:19 +0000 |
commit | 39858a1e752f8f26250171e8658388f0853c176c (patch) | |
tree | b38b348c71faecca5f4b68b30c3500bd29c9b0cd /lib/igt_dummyload.c | |
parent | 4de67b26788c60c19254c3e69e151ee200453895 (diff) |
lib: Mass conversion to to_user_pointer()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r-- | lib/igt_dummyload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c index a2bae75a..d664dc94 100644 --- a/lib/igt_dummyload.c +++ b/lib/igt_dummyload.c @@ -127,9 +127,9 @@ static void emit_recursive_batch(igt_spin_t *spin, *++batch = 0; } obj[BATCH].relocation_count++; - obj[BATCH].relocs_ptr = (uintptr_t)relocs; + obj[BATCH].relocs_ptr = to_user_pointer(relocs); - execbuf.buffers_ptr = (uintptr_t)(obj + (2 - execbuf.buffer_count)); + execbuf.buffers_ptr = to_user_pointer(obj + (2 - execbuf.buffer_count)); for (i = 0; i < nengine; i++) { execbuf.flags &= ~ENGINE_MASK; |