From: José Fonseca Date: Wed, 28 Nov 2012 19:57:26 +0000 (+0000) Subject: llvmpipe: Don't use dynamically sized arrays. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=547efc76df31a87a59ed1b6b5e935a1acf4728bf;p=mesa.git llvmpipe: Don't use dynamically sized arrays. Unfortunately for MSVC arrays with a constant variable size are still considered dynamically sized. --- diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index bf0217d6847..d702fc07280 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -1377,10 +1377,10 @@ generate_unswizzled_blend(struct gallivm_state *gallivm, LLVMBuilderRef builder = gallivm->builder; LLVMValueRef fs_src[4][TGSI_NUM_CHANNELS]; - LLVMValueRef src_alpha[block_size]; - LLVMValueRef src_mask[block_size]; - LLVMValueRef src[block_size]; - LLVMValueRef dst[block_size]; + LLVMValueRef src_alpha[4 * 4]; + LLVMValueRef src_mask[4 * 4]; + LLVMValueRef src[4 * 4]; + LLVMValueRef dst[4 * 4]; LLVMValueRef blend_color; LLVMValueRef blend_alpha; LLVMValueRef i32_zero;