summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-04-15 12:14:27 -0600
committerEmil Velikov <emil.l.velikov@gmail.com>2016-05-05 11:47:19 +0100
commitc6acc7812fad32eff4cca316d5703a061cfbbaa6 (patch)
tree96777482eda0774f8112b00a7900f8047d3ba34d
parentbf37eeb166b2246ec905447ac90b146a6b43f514 (diff)
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" <mesa-stable@lists.freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> (cherry picked from commit 1db8313168531f19b410ac55f7c724ef5d23b2c4)
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index fccc92c06c4..abf70f714af 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -1520,7 +1520,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;