summaryrefslogtreecommitdiff
path: root/lib/igt_dummyload.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r--lib/igt_dummyload.c4
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;