Mesa (master): gallivm: Check inputs/outputs in lp_build_conv()
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Fri Jul 2 17:46:10 UTC 2010
Module: Mesa
Branch: master
Commit: e29ef44cf1fc22810bc222a0f3f4de2b7d6f9438
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e29ef44cf1fc22810bc222a0f3f4de2b7d6f9438
Author: José Fonseca <jfonseca at vmware.com>
Date: Fri Jul 2 16:55:27 2010 +0100
gallivm: Check inputs/outputs in lp_build_conv()
---
src/gallium/auxiliary/gallivm/lp_bld_conv.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_conv.c b/src/gallium/auxiliary/gallivm/lp_bld_conv.c
index 44428f8..77012f1 100644
--- 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]));
+ }
}
More information about the mesa-commit
mailing list