summaryrefslogtreecommitdiff
path: root/tests/gem_eio.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_eio.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_eio.c')
-rw-r--r--tests/gem_eio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_eio.c b/tests/gem_eio.c
index fcff9ecc..22fcf439 100644
--- a/tests/gem_eio.c
+++ b/tests/gem_eio.c
@@ -110,7 +110,7 @@ static void test_execbuf(int fd)
exec.handle = gem_create(fd, 4096);
gem_write(fd, exec.handle, 0, tmp, sizeof(tmp));
- execbuf.buffers_ptr = (uintptr_t)&exec;
+ execbuf.buffers_ptr = to_user_pointer(&exec);
execbuf.buffer_count = 1;
wedge_gpu(fd);
@@ -207,7 +207,7 @@ static void test_inflight(int fd)
gem_write(fd, obj[1].handle, 0, &bbe, sizeof(bbe));
memset(&execbuf, 0, sizeof(execbuf));
- execbuf.buffers_ptr = (uintptr_t)obj;
+ execbuf.buffers_ptr = to_user_pointer(obj);
execbuf.buffer_count = 2;
gem_execbuf(fd, &execbuf);