Module: Mesa Branch: master Commit: c98f03c6ebaca82c265b2f3242aed5c6a3c5dcd8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c98f03c6ebaca82c265b2f3242aed5c6a3c5dcd8
Author: Eric Anholt <[email protected]> Date: Tue May 9 11:24:21 2017 -0700 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]> --- src/gallium/auxiliary/renderonly/renderonly.c | 1 + 1 file changed, 1 insertion(+) 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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
