summaryrefslogtreecommitdiffstats
path: root/src/video_core/surface.h
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2022-11-06 15:19:08 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-11-24 20:35:44 +0100
commit7356ab1de6ab7336da426b9176daafb3ebb503f5 (patch)
treed5d348714633de2a1788bc0d114b32045f24f7f8 /src/video_core/surface.h
parentMaxwellDMA: Implement BlockLinear to BlockLinear copies. (diff)
downloadyuzu-7356ab1de6ab7336da426b9176daafb3ebb503f5.tar
yuzu-7356ab1de6ab7336da426b9176daafb3ebb503f5.tar.gz
yuzu-7356ab1de6ab7336da426b9176daafb3ebb503f5.tar.bz2
yuzu-7356ab1de6ab7336da426b9176daafb3ebb503f5.tar.lz
yuzu-7356ab1de6ab7336da426b9176daafb3ebb503f5.tar.xz
yuzu-7356ab1de6ab7336da426b9176daafb3ebb503f5.tar.zst
yuzu-7356ab1de6ab7336da426b9176daafb3ebb503f5.zip
Diffstat (limited to 'src/video_core/surface.h')
-rw-r--r--src/video_core/surface.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/surface.h b/src/video_core/surface.h
index 57ca7f597..44b79af20 100644
--- a/src/video_core/surface.h
+++ b/src/video_core/surface.h
@@ -23,6 +23,7 @@ enum class PixelFormat {
A1R5G5B5_UNORM,
A2B10G10R10_UNORM,
A2B10G10R10_UINT,
+ A2R10G10B10_UNORM,
A1B5G5R5_UNORM,
A5B5G5R1_UNORM,
R8_UNORM,
@@ -159,6 +160,7 @@ constexpr std::array<u8, MaxPixelFormat> BLOCK_WIDTH_TABLE = {{
1, // A1R5G5B5_UNORM
1, // A2B10G10R10_UNORM
1, // A2B10G10R10_UINT
+ 1, // A2R10G10B10_UNORM
1, // A1B5G5R5_UNORM
1, // A5B5G5R1_UNORM
1, // R8_UNORM
@@ -264,6 +266,7 @@ constexpr std::array<u8, MaxPixelFormat> BLOCK_HEIGHT_TABLE = {{
1, // A1R5G5B5_UNORM
1, // A2B10G10R10_UNORM
1, // A2B10G10R10_UINT
+ 1, // A2R10G10B10_UNORM
1, // A1B5G5R5_UNORM
1, // A5B5G5R1_UNORM
1, // R8_UNORM
@@ -369,6 +372,7 @@ constexpr std::array<u8, MaxPixelFormat> BITS_PER_BLOCK_TABLE = {{
16, // A1R5G5B5_UNORM
32, // A2B10G10R10_UNORM
32, // A2B10G10R10_UINT
+ 32, // A2R10G10B10_UNORM
16, // A1B5G5R5_UNORM
16, // A5B5G5R1_UNORM
8, // R8_UNORM