summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-03-31 21:16:16 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-03-31 21:27:47 +0100
commit018aae950df449a18d7d69de54d51af587be94c6 (patch)
tree6100c28b900120bdf2401cec854796e3a79efb6c /progs
parentb8012643e1f5f6e49593ec8f04d3721df53e6afb (diff)
util: Make the accessors bidimensional again.
Otherwise there's no way to unpack blocks with height >1
Diffstat (limited to 'progs')
-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 ba4e9fab66d..54cb6b879e5 100644
--- a/progs/gallium/unit/u_format_test.c
+++ b/progs/gallium/unit/u_format_test.c
@@ -72,7 +72,7 @@ test_format_unpack_float(const struct util_format_description *format_desc,
unsigned i;
boolean success;
- format_desc->unpack_float(unpacked, test->packed, 1);
+ format_desc->unpack_float(unpacked, 0, test->packed, 0, 1, 1);
success = TRUE;
for (i = 0; i < 4; ++i)
@@ -102,7 +102,7 @@ test_format_pack_float(const struct util_format_description *format_desc,
for (i = 0; i < 4; ++i)
unpacked[i] = (float) test->unpacked[i];
- format_desc->pack_float(packed, unpacked, 1);
+ format_desc->pack_float(packed, 0, unpacked, 0, 1, 1);
success = TRUE;
for (i = 0; i < UTIL_FORMAT_MAX_PACKED_BYTES; ++i)
@@ -160,7 +160,7 @@ test_format_unpack_8unorm(const struct util_format_description *format_desc,
unsigned i;
boolean success;
- format_desc->unpack_8unorm(unpacked, test->packed, 1);
+ format_desc->unpack_8unorm(unpacked, 0, test->packed, 0, 1, 1);
convert_float_to_8unorm(expected, test->unpacked);
@@ -196,7 +196,7 @@ test_format_pack_8unorm(const struct util_format_description *format_desc,
memset(packed, 0, sizeof packed);
- format_desc->pack_8unorm(packed, unpacked, 1);
+ format_desc->pack_8unorm(packed, 0, unpacked, 0, 1, 1);
success = TRUE;
for (i = 0; i < UTIL_FORMAT_MAX_PACKED_BYTES; ++i)