summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-04-07 19:47:24 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-04-07 19:47:24 +0100
commit7f9444050fbf91a5727617ba39806f28ea0921a2 (patch)
tree6c4385b7e512c25d3618ac50aefb5622c7900b17 /progs
parent78fd65fd2c9b537b88bf35454b98323029ee1bb3 (diff)
util: Implement YUV and subsampled RGB format conversion.
Diffstat (limited to 'progs')
-rw-r--r--progs/gallium/unit/u_format_test.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/progs/gallium/unit/u_format_test.c b/progs/gallium/unit/u_format_test.c
index 53e028482b..eeb853c30f 100644
--- a/progs/gallium/unit/u_format_test.c
+++ b/progs/gallium/unit/u_format_test.c
@@ -169,7 +169,9 @@ test_format_unpack_float(const struct util_format_description *format_desc,
unsigned i, j, k;
boolean success;
- format_desc->unpack_float(&unpacked[0][0][0], sizeof unpacked[0], test->packed, 0, format_desc->block.width, format_desc->block.height);
+ format_desc->unpack_float(&unpacked[0][0][0], sizeof unpacked[0],
+ test->packed, 0,
+ format_desc->block.width, format_desc->block.height);
success = TRUE;
for (i = 0; i < format_desc->block.height; ++i) {
@@ -219,7 +221,9 @@ test_format_pack_float(const struct util_format_description *format_desc,
}
}
- format_desc->pack_float(packed, 0, &unpacked[0][0][0], sizeof unpacked[0], format_desc->block.width, format_desc->block.height);
+ format_desc->pack_float(packed, 0,
+ &unpacked[0][0][0], sizeof unpacked[0],
+ format_desc->block.width, format_desc->block.height);
success = TRUE;
for (i = 0; i < format_desc->block.bits/8; ++i)
@@ -268,7 +272,9 @@ test_format_unpack_8unorm(const struct util_format_description *format_desc,
unsigned i, j, k;
boolean success;
- format_desc->unpack_8unorm(&unpacked[0][0][0], sizeof unpacked[0], test->packed, 0, 1, 1);
+ format_desc->unpack_8unorm(&unpacked[0][0][0], sizeof unpacked[0],
+ test->packed, 0,
+ format_desc->block.width, format_desc->block.height);
convert_float_to_8unorm(&expected[0][0][0], &test->unpacked[0][0][0]);
@@ -319,7 +325,9 @@ test_format_pack_8unorm(const struct util_format_description *format_desc,
memset(packed, 0, sizeof packed);
- format_desc->pack_8unorm(packed, 0, &unpacked[0][0][0], sizeof unpacked[0], 1, 1);
+ format_desc->pack_8unorm(packed, 0,
+ &unpacked[0][0][0], sizeof unpacked[0],
+ format_desc->block.width, format_desc->block.height);
success = TRUE;
for (i = 0; i < format_desc->block.bits/8; ++i)