projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f64fe7d
)
gallivm: Move loop var declaration to beginning of scope.
author
José Fonseca
<jfonseca@vmware.com>
Wed, 25 Apr 2012 14:49:45 +0000
(15:49 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 2 May 2012 09:24:33 +0000
(10:24 +0100)
src/gallium/auxiliary/gallivm/lp_bld_printf.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_printf.c
b/src/gallium/auxiliary/gallivm/lp_bld_printf.c
index 0d8d8065cb994f21d9c025366add30dcd51f08ed..5aa802d96709ab9d04cc99d77cff3341c6c42076 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_printf.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_printf.c
@@
-182,9
+182,11
@@
lp_build_print_uvec16(struct gallivm_state *gallivm,
LLVMBuilderRef builder = gallivm->builder;
char format[1000];
LLVMValueRef args[16];
+ int i;
- for
(int i = 0; i < 16; ++i)
+ for
(i = 0; i < 16; ++i) {
args[i] = LLVMBuildExtractElement(builder, vec, lp_build_const_int32(gallivm, i), "");
+ }
util_snprintf(format, sizeof(format), "%s %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u\n", msg);