aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/renderonly
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-05-09 11:24:21 -0700
committerChristian Gmeiner <[email protected]>2017-05-15 06:38:45 +0200
commitc98f03c6ebaca82c265b2f3242aed5c6a3c5dcd8 (patch)
tree9d6b130ea7877481065f4c58da7314368f442881 /src/gallium/auxiliary/renderonly
parent12f9fa564aa844d8ecd995853ac78a3f8156b965 (diff)
renderonly: Initialize fields of struct winsys_handle.
vc4 was rejecting renderonly's import, because the offset field was nonzero. Fixes: 848b49b288f ("gallium: add renderonly library") Cc: [email protected] Signed-off-by: Eric Anholt <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/renderonly')
-rw-r--r--src/gallium/auxiliary/renderonly/renderonly.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/renderonly/renderonly.c b/src/gallium/auxiliary/renderonly/renderonly.c
index 2fe10090163..d3ed214f4e4 100644
--- a/src/gallium/auxiliary/renderonly/renderonly.c
+++ b/src/gallium/auxiliary/renderonly/renderonly.c
@@ -117,6 +117,7 @@ renderonly_create_kms_dumb_buffer_for_resource(struct pipe_resource *rsc,
}
/* import dumb buffer */
+ memset(&handle, 0, sizeof(handle));
handle.type = DRM_API_HANDLE_TYPE_FD;
handle.handle = prime_fd;
handle.stride = create_dumb.pitch;