Mesa (mesa_7_7_branch): llvmpipe: Silence uninitialized variable warning.

Vinson Lee vlee at kemper.freedesktop.org
Sat Jan 2 00:04:27 UTC 2010


Module: Mesa
Branch: mesa_7_7_branch
Commit: 3ae37da6116d7a703b2752fd7978caad79ecfcf2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ae37da6116d7a703b2752fd7978caad79ecfcf2

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Jan  1 16:03:53 2010 -0800

llvmpipe: Silence uninitialized variable warning.

---

 src/gallium/drivers/llvmpipe/lp_tex_sample_c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_tex_sample_c.c b/src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
index a1365a0..699394c 100644
--- a/src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
+++ b/src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
@@ -1085,7 +1085,7 @@ lp_get_samples_2d_common(struct tgsi_sampler *tgsi_sampler,
    const struct pipe_sampler_state *sampler = samp->sampler;
    unsigned level0, level1, j, imgFilter;
    int width, height;
-   float levelBlend;
+   float levelBlend = 0.0F;
 
    choose_mipmap_levels(tgsi_sampler, s, t, p, 
                         lodbias,




More information about the mesa-commit mailing list