draw llvm: Initialize variable.
authorVinson Lee <vlee@vmware.com>
Tue, 13 Apr 2010 07:49:58 +0000 (00:49 -0700)
committerVinson Lee <vlee@vmware.com>
Tue, 13 Apr 2010 07:49:58 +0000 (00:49 -0700)
src/gallium/auxiliary/draw/draw_llvm.c

index 122e7bafe0273e0491a499dcbdeeda7af8539a0a..364a560ecad30bba22c4ed1e29e1024e531a665f 100644 (file)
@@ -641,7 +641,7 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant)
    lp_build_loop_begin(builder, start, &lp_loop);
    {
       LLVMValueRef inputs[PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS];
-      LLVMValueRef aos_attribs[PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS];
+      LLVMValueRef aos_attribs[PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS] = { { 0 } };
       LLVMValueRef io;
       const LLVMValueRef (*ptr_aos)[NUM_CHANNELS];