projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8ed9f6
)
llvmpipe: Don't use dynamically sized arrays.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 28 Nov 2012 19:57:26 +0000
(19:57 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 28 Nov 2012 19:58:47 +0000
(19:58 +0000)
Unfortunately for MSVC arrays with a constant variable size are still
considered dynamically sized.
src/gallium/drivers/llvmpipe/lp_state_fs.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_state_fs.c
b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index bf0217d68473673035ce46bf9fd084b33417ee61..d702fc07280e5cb9a2d72f038d589f3a8c985ca4 100644
(file)
--- 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;