From 54681909be764b72646427373f55b3a11caa2517 Mon Sep 17 00:00:00 2001 From: makigumo Date: Fri, 13 Mar 2020 11:26:13 +0100 Subject: [PATCH 1/2] maxwell_to_vk: add vertex format eA2B10G10R10UnormPack32 --- src/video_core/renderer_vulkan/maxwell_to_vk.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp index df3ac707c0..a891395898 100644 --- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp +++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp @@ -331,7 +331,9 @@ vk::Format VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttr return vk::Format::eR16G16B16Unorm; case Maxwell::VertexAttribute::Size::Size_16_16_16_16: return vk::Format::eR16G16B16A16Unorm; - default: + case Maxwell::VertexAttribute::Size::Size_10_10_10_2: + return vk::Format::eA2B10G10R10UnormPack32; + default: break; } break; From 753bc2026f55dd1b2e77686bb90753dbb74c7873 Mon Sep 17 00:00:00 2001 From: makigumo Date: Fri, 13 Mar 2020 11:37:24 +0100 Subject: [PATCH 2/2] fix formatting --- src/video_core/renderer_vulkan/maxwell_to_vk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp index a891395898..0bab5d1c0d 100644 --- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp +++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp @@ -333,7 +333,7 @@ vk::Format VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttr return vk::Format::eR16G16B16A16Unorm; case Maxwell::VertexAttribute::Size::Size_10_10_10_2: return vk::Format::eA2B10G10R10UnormPack32; - default: + default: break; } break;