diff options
| author | bunnei <bunneidev@gmail.com> | 2022-05-29 02:33:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-29 02:33:24 -0700 |
| commit | 1c8b509441c63e14b05729ac9f38af89c20f5fe3 (patch) | |
| tree | 02f6de35ec91c4f7d9749f6e791d136103c1c8f8 /src/video_core/surface.h | |
| parent | cc289a8ed08e931e8d117df287093ab473e00ca8 (diff) | |
| parent | 36d44bf52f598d31d94343c238ad45d21b63c390 (diff) | |
Merge pull request #8332 from Morph1984/reduce_exec_size
general: Use smaller array types where applicable
Diffstat (limited to 'src/video_core/surface.h')
| -rw-r--r-- | src/video_core/surface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/surface.h b/src/video_core/surface.h index 86fea61ae..75e055592 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_UNORM 1, // A8B8G8R8_SNORM 1, // 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_UNORM 1, // A8B8G8R8_SNORM 1, // 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_UNORM 32, // A8B8G8R8_SNORM 32, // A8B8G8R8_SINT |
