llvmpipe: Collect richer blend data.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 4 Aug 2009 12:39:28 +0000 (13:39 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 29 Aug 2009 08:21:23 +0000 (09:21 +0100)
src/gallium/drivers/llvmpipe/lp_test_blend.c

index 9ac115b99f41ea38f4aae2db913ee70ee91c8974..56cd800b37ff99fe189f60fcadfcc0cfc343b6bd 100644 (file)
@@ -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),