On 02/20/2015 12:22 PM, Marek Olšák wrote:
From: Marek Olšák <marek.ol...@amd.com>

---
  src/gallium/auxiliary/gallivm/lp_bld_init.c   | 2 +-
  src/gallium/auxiliary/gallivm/lp_bld_sample.c | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_init.c 
b/src/gallium/auxiliary/gallivm/lp_bld_init.c
index b9593de..6133883 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_init.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_init.c
@@ -509,7 +509,7 @@ void
  gallivm_compile_module(struct gallivm_state *gallivm)
  {
     LLVMValueRef func;
-   int64_t time_begin;
+   int64_t time_begin = 0;

     assert(!gallivm->compiled);

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c 
b/src/gallium/auxiliary/gallivm/lp_bld_sample.c
index 093c8fc..7d18ee5 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_sample.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_sample.c
@@ -221,7 +221,7 @@ lp_build_rho(struct lp_build_sample_context *bld,
     struct lp_build_context *coord_bld = &bld->coord_bld;
     struct lp_build_context *rho_bld = &bld->lodf_bld;
     const unsigned dims = bld->dims;
-   LLVMValueRef ddx_ddy[2];
+   LLVMValueRef ddx_ddy[2] = {NULL};
     LLVMBuilderRef builder = bld->gallivm->builder;
     LLVMTypeRef i32t = LLVMInt32TypeInContext(bld->gallivm->context);
     LLVMValueRef index0 = LLVMConstInt(i32t, 0, 0);


For the series, Reviewed-by: Brian Paul <bri...@vmware.com>

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to