llvmpipe: store zero into all alloca'd values
Fixes slowdown in isosurf with earlier versions of llvm.
This commit is contained in:
parent
40d7be5261
commit
6da29f3611
|
@ -830,6 +830,7 @@ lp_build_alloca(LLVMBuilderRef builder,
|
|||
}
|
||||
|
||||
res = LLVMBuildAlloca(first_builder, type, name);
|
||||
LLVMBuildStore(builder, LLVMConstNull(type), res);
|
||||
|
||||
LLVMDisposeBuilder(first_builder);
|
||||
|
||||
|
|
Loading…
Reference in New Issue