diff options
author | José Fonseca <[email protected]> | 2012-11-28 19:57:26 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-11-28 19:58:47 +0000 |
commit | 547efc76df31a87a59ed1b6b5e935a1acf4728bf (patch) | |
tree | 9fb4dfe98053f403ba261fa5527712cfc283d8ad /src/gallium/drivers | |
parent | c8ed9f6262a73849a64c55bcfaac2a50e42e0945 (diff) |
llvmpipe: Don't use dynamically sized arrays.
Unfortunately for MSVC arrays with a constant variable size are still
considered dynamically sized.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_fs.c | 8 |
1 files 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; |