From c98f03c6ebaca82c265b2f3242aed5c6a3c5dcd8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 9 May 2017 11:24:21 -0700 Subject: 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 Reviewed-by: Christian Gmeiner --- src/gallium/auxiliary/renderonly/renderonly.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/auxiliary/renderonly') 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; -- cgit v1.2.3