summaryrefslogtreecommitdiffstats
path: root/progs/gallium
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-03-31 14:43:09 +0100
committerJosé Fonseca <[email protected]>2010-03-31 15:32:16 +0100
commite245ca74e11869750cafb1ab3fbb6957100c554b (patch)
treeddce915bcf7b7b3df601261a985b0c31d22ab97b /progs/gallium
parentb46750d601655c39ccb967ae525d4edcbb9fb9d2 (diff)
util: Make pack/unpack operate on spans.
Diffstat (limited to 'progs/gallium')
-rw-r--r--progs/gallium/unit/u_format_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/progs/gallium/unit/u_format_test.c b/progs/gallium/unit/u_format_test.c
index 1aef416a7ed..303f4fa4999 100644
--- a/progs/gallium/unit/u_format_test.c
+++ b/progs/gallium/unit/u_format_test.c
@@ -41,7 +41,7 @@ test_format_unpack_4f(const struct util_format_test_case *test)
unsigned i;
boolean success;
- util_format_unpack_4f(test->format, unpacked, test->packed);
+ util_format_unpack_4f(test->format, unpacked, test->packed, 1);
success = TRUE;
for (i = 0; i < 4; ++i)
@@ -70,7 +70,7 @@ test_format_pack_4f(const struct util_format_test_case *test)
for (i = 0; i < 4; ++i)
unpacked[i] = (float) test->unpacked[i];
- util_format_pack_4f(test->format, packed, unpacked);
+ util_format_pack_4f(test->format, packed, unpacked, 1);
success = TRUE;
for (i = 0; i < UTIL_FORMAT_MAX_PACKED_BYTES; ++i)
@@ -127,7 +127,7 @@ test_format_unpack_4ub(const struct util_format_test_case *test)
unsigned i;
boolean success;
- util_format_unpack_4ub(test->format, unpacked, test->packed);
+ util_format_unpack_4ub(test->format, unpacked, test->packed, 1);
convert_4f_to_4ub(expected, test->unpacked);
@@ -162,7 +162,7 @@ test_format_pack_4ub(const struct util_format_test_case *test)
memset(packed, 0, sizeof packed);
- util_format_pack_4ub(test->format, packed, unpacked);
+ util_format_pack_4ub(test->format, packed, unpacked, 1);
success = TRUE;
for (i = 0; i < UTIL_FORMAT_MAX_PACKED_BYTES; ++i)