VERY experimental Nintendo Switch 2 emulator
C++
video_core/surface: Use u8 for PixelFormat block tables
Morph23aeada691a6
diff --git a/src/video_core/surface.h b/src/video_core/surface.hindex 86fea61ae2..75e0555928 100644--- a/src/video_core/surface.h+++ b/src/video_core/surface.h@@ -147,7 +147,7 @@ enum class SurfaceTarget {TextureCubeArray,};-constexpr std::array<u32, MaxPixelFormat> BLOCK_WIDTH_TABLE = {{+constexpr std::array<u8, MaxPixelFormat> BLOCK_WIDTH_TABLE = {{1, // A8B8G8R8_UNORM1, // A8B8G8R8_SNORM1, // A8B8G8R8_SINT@@ -249,7 +249,7 @@ constexpr u32 DefaultBlockWidth(PixelFormat format) {return BLOCK_WIDTH_TABLE[static_cast<std::size_t>(format)];}-constexpr std::array<u32, MaxPixelFormat> BLOCK_HEIGHT_TABLE = {{+constexpr std::array<u8, MaxPixelFormat> BLOCK_HEIGHT_TABLE = {{1, // A8B8G8R8_UNORM1, // A8B8G8R8_SNORM1, // A8B8G8R8_SINT@@ -351,7 +351,7 @@ constexpr u32 DefaultBlockHeight(PixelFormat format) {return BLOCK_HEIGHT_TABLE[static_cast<std::size_t>(format)];}-constexpr std::array<u32, MaxPixelFormat> BITS_PER_BLOCK_TABLE = {{+constexpr std::array<u8, MaxPixelFormat> BITS_PER_BLOCK_TABLE = {{32, // A8B8G8R8_UNORM32, // A8B8G8R8_SNORM32, // A8B8G8R8_SINT