summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-12-07 19:04:07 -0800
committerVinson Lee <vlee@vmware.com>2009-12-07 19:04:07 -0800
commitadd6dfbba64260c9b314b4a95c8def084e05bd3b (patch)
tree1a0ff6e24fa0afa670aadfea90b584cc1b0dd5ba /src
parent3e8b2fda215689b9a77c73020a1efc523995931e (diff)
downloadexternal_mesa3d-add6dfbba64260c9b314b4a95c8def084e05bd3b.zip
external_mesa3d-add6dfbba64260c9b314b4a95c8def084e05bd3b.tar.gz
external_mesa3d-add6dfbba64260c9b314b4a95c8def084e05bd3b.tar.bz2
llvmpipe: Initialize variables in emit_instruction.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
index d4d18fe..f588bde 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
@@ -496,9 +496,9 @@ emit_instruction(
if (IS_DST0_CHANNEL_ENABLED( inst, CHAN_X ) ||
IS_DST0_CHANNEL_ENABLED( inst, CHAN_Y ) ||
IS_DST0_CHANNEL_ENABLED( inst, CHAN_Z )) {
- LLVMValueRef *p_floor_log2;
- LLVMValueRef *p_exp;
- LLVMValueRef *p_log2;
+ LLVMValueRef *p_floor_log2 = NULL;
+ LLVMValueRef *p_exp = NULL;
+ LLVMValueRef *p_log2 = NULL;
src0 = emit_fetch( bld, inst, 0, CHAN_X );
src0 = lp_build_abs( &bld->base, src0 );