summaryrefslogtreecommitdiffstats
path: root/src/video_core/surface.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-30 22:32:36 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-07-13 06:01:09 +0200
commit480850ffe7106a23f23946ad9ea46b800fa60168 (patch)
treef2fdbe25c51b0b7458b67df7c1f9338374438a9c /src/video_core/surface.h
parentvideo_core: Fix B5G6R5U (diff)
downloadyuzu-480850ffe7106a23f23946ad9ea46b800fa60168.tar
yuzu-480850ffe7106a23f23946ad9ea46b800fa60168.tar.gz
yuzu-480850ffe7106a23f23946ad9ea46b800fa60168.tar.bz2
yuzu-480850ffe7106a23f23946ad9ea46b800fa60168.tar.lz
yuzu-480850ffe7106a23f23946ad9ea46b800fa60168.tar.xz
yuzu-480850ffe7106a23f23946ad9ea46b800fa60168.tar.zst
yuzu-480850ffe7106a23f23946ad9ea46b800fa60168.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/surface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/surface.h b/src/video_core/surface.h
index aec6b1734..9510db2c8 100644
--- a/src/video_core/surface.h
+++ b/src/video_core/surface.h
@@ -20,6 +20,7 @@ enum class PixelFormat {
ABGR8I,
ABGR8UI,
B5G6R5U,
+ B5G5R5A1U,
A2B10G10R10U,
A2B10G10R10UI,
A1B5G5R5U,
@@ -143,6 +144,7 @@ constexpr std::array<u32, MaxPixelFormat> compression_factor_shift_table = {{
0, // ABGR8I
0, // ABGR8UI
0, // B5G6R5U
+ 0, // B5G5R5A1U
0, // A2B10G10R10U
0, // A2B10G10R10UI
0, // A1B5G5R5U
@@ -250,6 +252,7 @@ constexpr std::array<u32, MaxPixelFormat> block_width_table = {{
1, // ABGR8I
1, // ABGR8UI
1, // B5G6R5U
+ 1, // B5G5R5A1U
1, // A2B10G10R10U
1, // A2B10G10R10UI
1, // A1B5G5R5U
@@ -349,6 +352,7 @@ constexpr std::array<u32, MaxPixelFormat> block_height_table = {{
1, // ABGR8I
1, // ABGR8UI
1, // B5G6R5U
+ 1, // B5G5R5A1U
1, // A2B10G10R10U
1, // A2B10G10R10UI
1, // A1B5G5R5U
@@ -448,6 +452,7 @@ constexpr std::array<u32, MaxPixelFormat> bpp_table = {{
32, // ABGR8I
32, // ABGR8UI
16, // B5G6R5U
+ 16, // B5G5R5A1U
32, // A2B10G10R10U
32, // A2B10G10R10UI
16, // A1B5G5R5U