summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_test_blend.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-08 20:38:01 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:25 +0100
commitb07d19a8859efb930d837c3b324be94cf412d819 (patch)
tree23e2d7b0cd552d70d77872fbe7dce9c068897cd2 /src/gallium/drivers/llvmpipe/lp_test_blend.c
parentb874a7b80729ba3de1b202598e5e82be3754f86f (diff)
llvmpipe: Normalize the cycles with the number of channel.
So that we have a comparable number for different formats.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_test_blend.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_test_blend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_test_blend.c b/src/gallium/drivers/llvmpipe/lp_test_blend.c
index a1e4ddf854..8dc16e3511 100644
--- a/src/gallium/drivers/llvmpipe/lp_test_blend.c
+++ b/src/gallium/drivers/llvmpipe/lp_test_blend.c
@@ -51,7 +51,7 @@ write_tsv_header(FILE *fp)
{
fprintf(fp,
"result\t"
- "cycles\t"
+ "cycles_per_channel\t"
"type\t"
"sep_func\t"
"sep_src_factor\t"
@@ -76,7 +76,7 @@ write_tsv_row(FILE *fp,
{
fprintf(fp, "%s\t", success ? "pass" : "fail");
- fprintf(fp, "%.1f\t", cycles + 0.5);
+ fprintf(fp, "%.1f\t", cycles / type.length);
fprintf(fp, "%s%u%sx%u\t",
type.floating ? "f" : (type.fixed ? "h" : (type.sign ? "s" : "u")),