diff options
author | José Fonseca <[email protected]> | 2009-08-04 13:39:28 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:23 +0100 |
commit | 1165c30dc2960c0488c21d542fd78485244cae2c (patch) | |
tree | bd89be3043035970f098c901f1415b4b70739eba | |
parent | 28e46458bca3065baf0424b20e5b72cb672069e6 (diff) |
llvmpipe: Collect richer blend data.
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_test_blend.c | 11 |
1 files changed, 10 insertions, 1 deletions
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")), @@ -100,6 +103,12 @@ write_tsv_row(FILE *fp, 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), debug_dump_blend_factor(blend->rgb_src_factor, TRUE), |