From f3134e265a0546d9d425af5dcd26c3d0cc2b76f6 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Mon, 7 May 2018 17:42:51 -0500 Subject: [PATCH] [Vulkan] Swap k_4_4_4_4 as well. --- src/xenia/gpu/vulkan/texture_cache.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xenia/gpu/vulkan/texture_cache.cc b/src/xenia/gpu/vulkan/texture_cache.cc index 62f3c32ae..a7f3aa894 100644 --- a/src/xenia/gpu/vulkan/texture_cache.cc +++ b/src/xenia/gpu/vulkan/texture_cache.cc @@ -40,6 +40,7 @@ struct TextureConfig { VK_COMPONENT_SWIZZLE_##r, VK_COMPONENT_SWIZZLE_##g, \ VK_COMPONENT_SWIZZLE_##b, VK_COMPONENT_SWIZZLE_##a #define RGBA SWIZ(R, G, B, A) +#define BGRA SWIZ(B, G, R, A) #define ABGR SWIZ(A, B, G, R) static const TextureConfig texture_configs[64] = { @@ -58,7 +59,7 @@ static const TextureConfig texture_configs[64] = { /* k_Y1_Cr_Y0_Cb */ {VK_FORMAT_UNDEFINED}, /* k_Shadow */ {VK_FORMAT_UNDEFINED}, /* k_8_8_8_8_A */ {VK_FORMAT_UNDEFINED}, - /* k_4_4_4_4 */ {VK_FORMAT_R4G4B4A4_UNORM_PACK16}, + /* k_4_4_4_4 */ {VK_FORMAT_R4G4B4A4_UNORM_PACK16, ABGR}, // TODO: Verify if these two are correct (I think not). /* k_10_11_11 */ {VK_FORMAT_B10G11R11_UFLOAT_PACK32}, /* k_11_11_10 */ {VK_FORMAT_B10G11R11_UFLOAT_PACK32}, @@ -127,6 +128,7 @@ static const TextureConfig texture_configs[64] = { }; #undef ABGR +#undef BGRA #undef RGBA #undef SWIZ