diff options
Diffstat (limited to 'tests/gem_mmap_wc.c')
-rw-r--r-- | tests/gem_mmap_wc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_mmap_wc.c b/tests/gem_mmap_wc.c index 8ecb9cca..c11c794a 100644 --- a/tests/gem_mmap_wc.c +++ b/tests/gem_mmap_wc.c @@ -372,7 +372,7 @@ test_set_cache_level(int fd) /* Bind the object to the cursor to force set-cache-level(DISPLAY) */ memset(&res, 0, sizeof(res)); res.count_crtcs = 32; - res.crtc_id_ptr = (uintptr_t)crtc; + res.crtc_id_ptr = to_user_pointer(crtc); do_ioctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res); for (n = 0; n < res.count_crtcs; n++) { struct drm_mode_crtc mode; |