summaryrefslogtreecommitdiff
path: root/lib/intel_batchbuffer.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:19 +0000
commit39858a1e752f8f26250171e8658388f0853c176c (patch)
treeb38b348c71faecca5f4b68b30c3500bd29c9b0cd /lib/intel_batchbuffer.c
parent4de67b26788c60c19254c3e69e151ee200453895 (diff)
lib: Mass conversion to to_user_pointer()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/intel_batchbuffer.c')
-rw-r--r--lib/intel_batchbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index 692521fd..f1353901 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -553,7 +553,7 @@ fill_object(struct drm_i915_gem_exec_object2 *obj, uint32_t gem_handle,
memset(obj, 0, sizeof(*obj));
obj->handle = gem_handle;
obj->relocation_count = count;
- obj->relocs_ptr = (uintptr_t)relocs;
+ obj->relocs_ptr = to_user_pointer(relocs);
}
static void exec_blit(int fd,
@@ -562,7 +562,7 @@ static void exec_blit(int fd,
{
struct drm_i915_gem_execbuffer2 exec;
- exec.buffers_ptr = (uintptr_t)objs;
+ exec.buffers_ptr = to_user_pointer(objs);
exec.buffer_count = count;
exec.batch_start_offset = 0;
exec.batch_len = batch_len * 4;