summaryrefslogtreecommitdiff
path: root/tests/gem_linear_blits.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:13 +0000
commit4de67b26788c60c19254c3e69e151ee200453895 (patch)
tree566eda27dcfe0f8266ba1931681003b9b76d8642 /tests/gem_linear_blits.c
parent0517d877b65bade23332cba0828acae7ae5fccb9 (diff)
igt: Mass conversion to to_user_pointer()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_linear_blits.c')
-rw-r--r--tests/gem_linear_blits.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_linear_blits.c b/tests/gem_linear_blits.c
index 55b01c8a..6cb6b064 100644
--- a/tests/gem_linear_blits.c
+++ b/tests/gem_linear_blits.c
@@ -110,10 +110,10 @@ copy(int fd, uint32_t dst, uint32_t src)
obj[2].handle = gem_create(fd, 4096);
gem_write(fd, obj[2].handle, 0, batch, i * sizeof(batch[0]));
obj[2].relocation_count = 2;
- obj[2].relocs_ptr = (uintptr_t)reloc;
+ obj[2].relocs_ptr = to_user_pointer(reloc);
memset(&exec, 0, sizeof(exec));
- exec.buffers_ptr = (uintptr_t)obj;
+ exec.buffers_ptr = to_user_pointer(obj);
exec.buffer_count = 3;
exec.batch_len = i * sizeof(batch[0]);
exec.flags = gem_has_blt(fd) ? I915_EXEC_BLT : 0;