From 906f24cb1a403372d2e3e829bf15d7765d7a8681 Mon Sep 17 00:00:00 2001 From: gibbed Date: Mon, 7 Aug 2017 10:59:23 -0500 Subject: [PATCH] GPU: Make the format info table 64 statically elements again. --- src/xenia/gpu/texture_info_formats.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/texture_info_formats.cc b/src/xenia/gpu/texture_info_formats.cc index 95b207c05..5cc1e80fc 100644 --- a/src/xenia/gpu/texture_info_formats.cc +++ b/src/xenia/gpu/texture_info_formats.cc @@ -19,7 +19,7 @@ using namespace xe::gpu::xenos; #define FORMAT_INFO(texture_format, format, block_width, block_height, bits_per_pixel) \ {TextureFormat::texture_format, FormatType::format, block_width, block_height, bits_per_pixel} const FormatInfo* FormatInfo::Get(uint32_t gpu_format) { - static const FormatInfo format_infos[] = { + static const FormatInfo format_infos[64] = { FORMAT_INFO(k_1_REVERSE , kUncompressed, 1, 1, 1), FORMAT_INFO(k_1 , kUncompressed, 1, 1, 1), FORMAT_INFO(k_8 , kUncompressed, 1, 1, 8), @@ -83,6 +83,7 @@ const FormatInfo* FormatInfo::Get(uint32_t gpu_format) { FORMAT_INFO(k_CTX1 , kCompressed , 4, 4, 4), FORMAT_INFO(k_DXT3A_AS_1_1_1_1 , kCompressed , 4, 4, 4), FORMAT_INFO(kUnknown , kUncompressed, 0, 0, 0), // k_2_10_10_10_FLOAT + FORMAT_INFO(kUnknown , kUncompressed, 0, 0, 0), // invalid }; return &format_infos[gpu_format]; }