summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2017-05-09 11:24:21 -0700
committerChristian Gmeiner <christian.gmeiner@gmail.com>2017-05-15 06:38:45 +0200
commitc98f03c6ebaca82c265b2f3242aed5c6a3c5dcd8 (patch)
tree9d6b130ea7877481065f4c58da7314368f442881 /src
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: mesa-stable@lists.freedesktop.org Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Diffstat (limited to 'src')
-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 2fe1009016..d3ed214f4e 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;