From: Brian Paul Date: Fri, 15 Apr 2016 18:14:27 +0000 (-0600) Subject: gallium/util: initialize pipe_framebuffer_state to zeros X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1db8313168531f19b410ac55f7c724ef5d23b2c4;p=mesa.git gallium/util: initialize pipe_framebuffer_state to zeros To silence a valgrind uninitialized memory warning. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94955 Cc: "11.1 11.2" Reviewed-by: Marek Olšák Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index 56aebdeb249..8d7cc9630d9 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -1525,7 +1525,7 @@ void util_blitter_blit_generic(struct blitter_context *blitter, { struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter; struct pipe_context *pipe = ctx->base.pipe; - struct pipe_framebuffer_state fb_state; + struct pipe_framebuffer_state fb_state = {0}; enum pipe_texture_target src_target = src->texture->target; unsigned src_samples = src->texture->nr_samples; unsigned dst_samples = dst->texture->nr_samples;