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_mocs_settings.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_mocs_settings.c')
-rw-r--r-- | tests/gem_mocs_settings.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_mocs_settings.c b/tests/gem_mocs_settings.c index 7c7a9af4..9faf6c54 100644 --- a/tests/gem_mocs_settings.c +++ b/tests/gem_mocs_settings.c @@ -183,9 +183,9 @@ static void do_read_registers(int fd, obj[1].handle = handle; obj[1].relocation_count = size; - obj[1].relocs_ptr = (uintptr_t) reloc; + obj[1].relocs_ptr = to_user_pointer(reloc); - execbuf.buffers_ptr = (uintptr_t)obj; + execbuf.buffers_ptr = to_user_pointer(obj); execbuf.buffer_count = 2; execbuf.batch_len = create_read_batch(reloc, batch, dst_handle, size, reg_base); @@ -236,7 +236,7 @@ static void write_registers(int fd, obj.handle = handle; - execbuf.buffers_ptr = (uintptr_t)&obj; + execbuf.buffers_ptr = to_user_pointer(&obj); execbuf.buffer_count = 1; execbuf.batch_len = create_write_batch(batch, values, size, reg_base); i915_execbuffer2_set_context_id(execbuf, ctx_id); |