projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b69545
)
gallivm: Check inputs/outputs in lp_build_conv()
author
José Fonseca
<jfonseca@vmware.com>
Fri, 2 Jul 2010 15:55:27 +0000
(16:55 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 2 Jul 2010 17:45:49 +0000
(18:45 +0100)
src/gallium/auxiliary/gallivm/lp_bld_conv.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_conv.c
b/src/gallium/auxiliary/gallivm/lp_bld_conv.c
index 44428f884d181ce8a4b7938f9c96b69c5ced2939..77012f1fac62ec524273399bcab1c30fac333761 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_conv.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_conv.c
@@
-233,8
+233,10
@@
lp_build_conv(LLVMBuilderRef builder,
assert(num_dsts <= LP_MAX_VECTOR_LENGTH);
tmp_type = src_type;
- for(i = 0; i < num_srcs; ++i)
+ for(i = 0; i < num_srcs; ++i) {
+ assert(lp_check_value(src_type, src[i]));
tmp[i] = src[i];
+ }
num_tmps = num_srcs;
/*
@@
-405,8
+407,10
@@
lp_build_conv(LLVMBuilderRef builder,
}
}
- for(i = 0; i < num_dsts; ++i)
+ for(i = 0; i < num_dsts; ++i)
{
dst[i] = tmp[i];
+ assert(lp_check_value(dst_type, dst[i]));
+ }
}