summaryrefslogtreecommitdiff
path: root/src/video_core/surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/surface.h')
-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 3e9dd797a..6f3162986 100644
--- a/src/video_core/surface.h
+++ b/src/video_core/surface.h
@@ -17,6 +17,7 @@ namespace VideoCore::Surface {
17enum class PixelFormat { 17enum class PixelFormat {
18 ABGR8U, 18 ABGR8U,
19 ABGR8S, 19 ABGR8S,
20 ABGR8I,
20 ABGR8UI, 21 ABGR8UI,
21 B5G6R5U, 22 B5G6R5U,
22 A2B10G10R10U, 23 A2B10G10R10U,
@@ -136,6 +137,7 @@ enum class SurfaceTarget {
136constexpr std::array<u32, MaxPixelFormat> compression_factor_shift_table = {{ 137constexpr std::array<u32, MaxPixelFormat> compression_factor_shift_table = {{
137 0, // ABGR8U 138 0, // ABGR8U
138 0, // ABGR8S 139 0, // ABGR8S
140 0, // ABGR8I
139 0, // ABGR8UI 141 0, // ABGR8UI
140 0, // B5G6R5U 142 0, // B5G6R5U
141 0, // A2B10G10R10U 143 0, // A2B10G10R10U
@@ -239,6 +241,7 @@ inline constexpr u32 GetCompressionFactor(PixelFormat format) {
239constexpr std::array<u32, MaxPixelFormat> block_width_table = {{ 241constexpr std::array<u32, MaxPixelFormat> block_width_table = {{
240 1, // ABGR8U 242 1, // ABGR8U
241 1, // ABGR8S 243 1, // ABGR8S
244 1, // ABGR8I
242 1, // ABGR8UI 245 1, // ABGR8UI
243 1, // B5G6R5U 246 1, // B5G6R5U
244 1, // A2B10G10R10U 247 1, // A2B10G10R10U
@@ -334,6 +337,7 @@ static constexpr u32 GetDefaultBlockWidth(PixelFormat format) {
334constexpr std::array<u32, MaxPixelFormat> block_height_table = {{ 337constexpr std::array<u32, MaxPixelFormat> block_height_table = {{
335 1, // ABGR8U 338 1, // ABGR8U
336 1, // ABGR8S 339 1, // ABGR8S
340 1, // ABGR8I
337 1, // ABGR8UI 341 1, // ABGR8UI
338 1, // B5G6R5U 342 1, // B5G6R5U
339 1, // A2B10G10R10U 343 1, // A2B10G10R10U
@@ -429,6 +433,7 @@ static constexpr u32 GetDefaultBlockHeight(PixelFormat format) {
429constexpr std::array<u32, MaxPixelFormat> bpp_table = {{ 433constexpr std::array<u32, MaxPixelFormat> bpp_table = {{
430 32, // ABGR8U 434 32, // ABGR8U
431 32, // ABGR8S 435 32, // ABGR8S
436 32, // ABGR8I
432 32, // ABGR8UI 437 32, // ABGR8UI
433 16, // B5G6R5U 438 16, // B5G6R5U
434 32, // A2B10G10R10U 439 32, // A2B10G10R10U