gallium/unit: Silence warnings.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 8 Apr 2010 21:45:44 +0000 (22:45 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 9 Apr 2010 15:32:47 +0000 (16:32 +0100)
progs/gallium/unit/u_format_test.c

index eeb853c30f3a39ea9a59d5f3bd56253129956104..f4891720017ab360697a9449df40164d1348b8d7 100644 (file)
@@ -94,7 +94,7 @@ print_unpacked_doubl(const struct util_format_description *format_desc,
 static void
 print_unpacked_float(const struct util_format_description *format_desc,
                      const char *prefix,
-                     const float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4],
+                     float unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4],
                      const char *suffix)
 {
    unsigned i, j;
@@ -115,7 +115,7 @@ print_unpacked_float(const struct util_format_description *format_desc,
 static void
 print_unpacked_8unorm(const struct util_format_description *format_desc,
                       const char *prefix,
-                      const uint8_t unpacked[][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4],
+                      uint8_t unpacked[UTIL_FORMAT_MAX_UNPACKED_HEIGHT][UTIL_FORMAT_MAX_UNPACKED_WIDTH][4],
                       const char *suffix)
 {
    unsigned i, j;