mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
llvmpipe: Added a error counter to lp_test_conv.
Useful for keeping track of progress when fixing errors! Signed-off-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
383c1b649b
commit
8a933e36d1
1 changed files with 7 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue