Mesa (master): llvmpipe: Added a error counter to lp_test_conv.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Tue May 22 09:28:35 UTC 2012
Module: Mesa
Branch: master
Commit: 8a933e36d1f91d3b8a5377a8d23c2dcdd403e8ad
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a933e36d1f91d3b8a5377a8d23c2dcdd403e8ad
Author: James Benton <jbenton at vmware.com>
Date: Fri May 18 16:17:26 2012 +0100
llvmpipe: Added a error counter to lp_test_conv.
Useful for keeping track of progress when fixing errors!
Signed-off-by: José Fonseca <jfonseca at vmware.com>
---
src/gallium/drivers/llvmpipe/lp_test_conv.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_test_conv.c b/src/gallium/drivers/llvmpipe/lp_test_conv.c
index 307b8d9..0dcb542 100644
--- a/src/gallium/drivers/llvmpipe/lp_test_conv.c
+++ b/src/gallium/drivers/llvmpipe/lp_test_conv.c
@@ -386,6 +386,7 @@ test_all(struct gallivm_state *gallivm, unsigned verbose, FILE *fp)
const struct lp_type *src_type;
const struct lp_type *dst_type;
boolean success = TRUE;
+ int error_count = 0;
for(src_type = conv_types; src_type < &conv_types[num_types]; ++src_type) {
for(dst_type = conv_types; dst_type < &conv_types[num_types]; ++dst_type) {
@@ -393,12 +394,15 @@ test_all(struct gallivm_state *gallivm, unsigned verbose, FILE *fp)
if(src_type == dst_type)
continue;
- if(!test_one(gallivm, verbose, fp, *src_type, *dst_type))
- success = FALSE;
-
+ if(!test_one(gallivm, verbose, fp, *src_type, *dst_type)){
+ success = FALSE;
+ ++error_count;
+ }
}
}
+ fprintf(stderr, "%d failures\n", error_count);
+
return success;
}
More information about the mesa-commit
mailing list