summaryrefslogtreecommitdiffstats
path: root/src/video_core/textures/decoders.h
diff options
context:
space:
mode:
authorMerry <git@mary.rs>2022-08-09 01:04:45 +0200
committermerry <git@mary.rs>2022-08-09 01:27:26 +0200
commitf2fbf6d9100c83c59237ea154c2ee5f8331a90ff (patch)
tree5e6d45d65c2fa709ed29c1df0f5a1984edfff8ec /src/video_core/textures/decoders.h
parentMerge pull request #8734 from liamwhite/bors-is-my-best-friend (diff)
downloadyuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar
yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar.gz
yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar.bz2
yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar.lz
yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar.xz
yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.tar.zst
yuzu-f2fbf6d9100c83c59237ea154c2ee5f8331a90ff.zip
Diffstat (limited to 'src/video_core/textures/decoders.h')
-rw-r--r--src/video_core/textures/decoders.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h
index 59dfd1621..31a11708f 100644
--- a/src/video_core/textures/decoders.h
+++ b/src/video_core/textures/decoders.h
@@ -20,6 +20,9 @@ constexpr u32 GOB_SIZE_Y_SHIFT = 3;
constexpr u32 GOB_SIZE_Z_SHIFT = 0;
constexpr u32 GOB_SIZE_SHIFT = GOB_SIZE_X_SHIFT + GOB_SIZE_Y_SHIFT + GOB_SIZE_Z_SHIFT;
+constexpr u32 SWIZZLE_X_BITS = 0b100101111;
+constexpr u32 SWIZZLE_Y_BITS = 0b011010000;
+
using SwizzleTable = std::array<std::array<u32, GOB_SIZE_X>, GOB_SIZE_Y>;
/**