summaryrefslogtreecommitdiff
path: root/lib/igt_vc4.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:19 +0000
commit39858a1e752f8f26250171e8658388f0853c176c (patch)
treeb38b348c71faecca5f4b68b30c3500bd29c9b0cd /lib/igt_vc4.c
parent4de67b26788c60c19254c3e69e151ee200453895 (diff)
lib: Mass conversion to to_user_pointer()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_vc4.c')
-rw-r--r--lib/igt_vc4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_vc4.c b/lib/igt_vc4.c
index b15ed767..c4682f56 100644
--- a/lib/igt_vc4.c
+++ b/lib/igt_vc4.c
@@ -83,7 +83,7 @@ uint32_t igt_vc4_get_cleared_bo(int fd, size_t size, uint32_t clearval)
.msaa_color_write = { .hindex = ~0 },
.msaa_zs_write = { .hindex = ~0 },
- .bo_handles = (uint64_t)(uintptr_t)&handle,
+ .bo_handles = to_user_pointer(&handle),
.bo_handle_count = 1,
.width = width,
.height = height,