summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_conv.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-07-02 16:55:27 +0100
committerJosé Fonseca <[email protected]>2010-07-02 18:45:49 +0100
commite29ef44cf1fc22810bc222a0f3f4de2b7d6f9438 (patch)
treea8ce1f2ccdf0595ffdc36ac0d837a4d767fdd7a2 /src/gallium/auxiliary/gallivm/lp_bld_conv.c
parent9b69545c42ce2722c21419f04794914abc455889 (diff)
gallivm: Check inputs/outputs in lp_build_conv()
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_conv.c')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_conv.c8
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 44428f884d1..77012f1fac6 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]));
+ }
}