diff options
author | Keith Whitwell <[email protected]> | 2010-10-07 19:49:20 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2010-10-09 11:43:23 +0100 |
commit | 6da29f36111edc821a4aa10128e9681fc75a43d7 (patch) | |
tree | d1f2824405b5936431a2ce2dc06b21507f98308b /src/gallium | |
parent | 40d7be52619fbff2479dcdf56929e3e0c5b12e72 (diff) |
llvmpipe: store zero into all alloca'd values
Fixes slowdown in isosurf with earlier versions of llvm.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_flow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_flow.c b/src/gallium/auxiliary/gallivm/lp_bld_flow.c index 5bc9c741a88..cd5fbc24638 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_flow.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_flow.c @@ -830,6 +830,7 @@ lp_build_alloca(LLVMBuilderRef builder, } res = LLVMBuildAlloca(first_builder, type, name); + LLVMBuildStore(builder, LLVMConstNull(type), res); LLVMDisposeBuilder(first_builder); |