From: José Fonseca Date: Tue, 4 Aug 2009 12:39:28 +0000 (+0100) Subject: llvmpipe: Collect richer blend data. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1165c30dc2960c0488c21d542fd78485244cae2c;p=mesa.git llvmpipe: Collect richer blend data. --- diff --git a/src/gallium/drivers/llvmpipe/lp_test_blend.c b/src/gallium/drivers/llvmpipe/lp_test_blend.c index 9ac115b99f4..56cd800b37f 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_blend.c +++ b/src/gallium/drivers/llvmpipe/lp_test_blend.c @@ -71,6 +71,9 @@ write_tsv_header(FILE *fp) "result\t" "cycles\t" "type\t" + "sep_func\t" + "sep_src_factor\t" + "sep_dst_factor\t" "rgb_func\t" "rgb_src_factor\t" "rgb_dst_factor\t" @@ -91,7 +94,7 @@ write_tsv_row(FILE *fp, { fprintf(fp, "%s\t", success ? "pass" : "fail"); - fprintf(fp, "%u\t", (unsigned)(cycles + 0.5)); + fprintf(fp, "%.1f\t", cycles + 0.5); fprintf(fp, "%s%u%sx%u\t", type.floating ? "f" : (type.fixed ? "h" : (type.sign ? "s" : "u")), @@ -99,6 +102,12 @@ write_tsv_row(FILE *fp, type.norm ? "n" : "", type.length); + fprintf(fp, + "%s\t%s\t%s\t", + blend->rgb_func != blend->alpha_func ? "true" : "false", + blend->rgb_src_factor != blend->alpha_src_factor ? "true" : "false", + blend->rgb_dst_factor != blend->alpha_dst_factor ? "true" : "false"); + fprintf(fp, "%s\t%s\t%s\t%s\t%s\t%s\n", debug_dump_blend_func(blend->rgb_func, TRUE),