From 547efc76df31a87a59ed1b6b5e935a1acf4728bf Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Wed, 28 Nov 2012 19:57:26 +0000 Subject: llvmpipe: Don't use dynamically sized arrays. Unfortunately for MSVC arrays with a constant variable size are still considered dynamically sized. --- src/gallium/drivers/llvmpipe/lp_state_fs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- cgit v1.2.3