diff options
Diffstat (limited to 'tests/gem_ppgtt.c')
-rw-r--r-- | tests/gem_ppgtt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_ppgtt.c b/tests/gem_ppgtt.c index 4bc6b116..a64d6d4f 100644 --- a/tests/gem_ppgtt.c +++ b/tests/gem_ppgtt.c @@ -208,7 +208,7 @@ static uint64_t exec_and_get_offset(int fd, uint32_t batch) exec[0].handle = batch; memset(&execbuf, 0, sizeof(execbuf)); - execbuf.buffers_ptr = (uintptr_t)exec; + execbuf.buffers_ptr = to_user_pointer(exec); execbuf.buffer_count = 1; gem_execbuf(fd, &execbuf); |