Reviewed-by: Roland Scheidegger <sroland@vmware.com>
#include "pipe/p_format.h"
-#define UTIL_FORMAT_MAX_PACKED_BYTES 16
-#define UTIL_FORMAT_MAX_UNPACKED_WIDTH 4
-#define UTIL_FORMAT_MAX_UNPACKED_HEIGHT 4
+#define UTIL_FORMAT_MAX_PACKED_BYTES 32 // R64G64B64A64_FLOAT
+#define UTIL_FORMAT_MAX_UNPACKED_WIDTH 12 // ASTC 12x12
+#define UTIL_FORMAT_MAX_UNPACKED_HEIGHT 12
/**
continue;
}
+ assert(format_desc->block.bits <= UTIL_FORMAT_MAX_PACKED_BYTES * 8);
+ assert(format_desc->block.height <= UTIL_FORMAT_MAX_UNPACKED_HEIGHT);
+ assert(format_desc->block.width <= UTIL_FORMAT_MAX_UNPACKED_WIDTH);
+
if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC &&
!util_format_s3tc_enabled) {
continue;