summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-06-01 21:07:58 +0200
committerGitHub <noreply@github.com>2020-06-01 21:07:58 +0200
commit3a6714ab7fdd94e1b8b66126bf77e76949946f11 (patch)
tree79faaa36cebc0c416a2a872fdb7ba39a61a2c0c6 /src
parentMerge pull request #3996 from ReinUsesLisp/front-faces (diff)
parentformat_lookup_table: Implement G24S8 format as S8Z24 (diff)
downloadyuzu-3a6714ab7fdd94e1b8b66126bf77e76949946f11.tar
yuzu-3a6714ab7fdd94e1b8b66126bf77e76949946f11.tar.gz
yuzu-3a6714ab7fdd94e1b8b66126bf77e76949946f11.tar.bz2
yuzu-3a6714ab7fdd94e1b8b66126bf77e76949946f11.tar.lz
yuzu-3a6714ab7fdd94e1b8b66126bf77e76949946f11.tar.xz
yuzu-3a6714ab7fdd94e1b8b66126bf77e76949946f11.tar.zst
yuzu-3a6714ab7fdd94e1b8b66126bf77e76949946f11.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/texture_cache/format_lookup_table.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/texture_cache/format_lookup_table.cpp b/src/video_core/texture_cache/format_lookup_table.cpp
index 7032e0059..f476f03b0 100644
--- a/src/video_core/texture_cache/format_lookup_table.cpp
+++ b/src/video_core/texture_cache/format_lookup_table.cpp
@@ -41,7 +41,7 @@ struct Table {
ComponentType alpha_component;
bool is_srgb;
};
-constexpr std::array<Table, 77> DefinitionTable = {{
+constexpr std::array<Table, 78> DefinitionTable = {{
{TextureFormat::A8R8G8B8, C, UNORM, UNORM, UNORM, UNORM, PixelFormat::ABGR8U},
{TextureFormat::A8R8G8B8, C, SNORM, SNORM, SNORM, SNORM, PixelFormat::ABGR8S},
{TextureFormat::A8R8G8B8, C, UINT, UINT, UINT, UINT, PixelFormat::ABGR8UI},
@@ -98,6 +98,7 @@ constexpr std::array<Table, 77> DefinitionTable = {{
{TextureFormat::ZF32, C, FLOAT, FLOAT, FLOAT, FLOAT, PixelFormat::Z32F},
{TextureFormat::Z16, C, UNORM, UNORM, UNORM, UNORM, PixelFormat::Z16},
{TextureFormat::S8Z24, C, UINT, UNORM, UNORM, UNORM, PixelFormat::S8Z24},
+ {TextureFormat::G24R8, C, UINT, UNORM, UNORM, UNORM, PixelFormat::S8Z24},
{TextureFormat::ZF32_X24S8, C, FLOAT, UINT, UNORM, UNORM, PixelFormat::Z32FS8},
{TextureFormat::DXT1, C, UNORM, UNORM, UNORM, UNORM, PixelFormat::DXT1},