summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_sample.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-02-20 20:14:33 +0100
committerMarek Olšák <marek.olsak@amd.com>2015-02-21 00:16:34 +0100
commit6f273ec408b794d1d8969ec52a5952c9babc1c52 (patch)
tree0332bc18b5c551d235c4ceb4e4dffa597c9128fa /src/gallium/auxiliary/gallivm/lp_bld_sample.c
parentb21ad12485d24565fd7f21addb5c86c77cf64580 (diff)
downloadexternal_mesa3d-6f273ec408b794d1d8969ec52a5952c9babc1c52.zip
external_mesa3d-6f273ec408b794d1d8969ec52a5952c9babc1c52.tar.gz
external_mesa3d-6f273ec408b794d1d8969ec52a5952c9babc1c52.tar.bz2
gallivm: fix uninitialized-variable warnings
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_sample.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_sample.c2
1 files changed, 1 insertions, 1 deletions
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);