summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-30 08:51:42 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-07-13 06:01:08 +0200
commitfd33e996e0d6d441917446f7a9ec854b0a79a909 (patch)
treefcc3d6086372cb7b04f2ed494ea60ce30298dfc2 /src/video_core/renderer_vulkan
parentvideo_core/surface: Remove explicit values on PixelFormat's definition (diff)
downloadyuzu-fd33e996e0d6d441917446f7a9ec854b0a79a909.tar
yuzu-fd33e996e0d6d441917446f7a9ec854b0a79a909.tar.gz
yuzu-fd33e996e0d6d441917446f7a9ec854b0a79a909.tar.bz2
yuzu-fd33e996e0d6d441917446f7a9ec854b0a79a909.tar.lz
yuzu-fd33e996e0d6d441917446f7a9ec854b0a79a909.tar.xz
yuzu-fd33e996e0d6d441917446f7a9ec854b0a79a909.tar.zst
yuzu-fd33e996e0d6d441917446f7a9ec854b0a79a909.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/maxwell_to_vk.cpp1
-rw-r--r--src/video_core/renderer_vulkan/vk_device.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
index d7f1ae89f..1f3f79380 100644
--- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
+++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
@@ -124,6 +124,7 @@ struct FormatTuple {
{VK_FORMAT_A2B10G10R10_UNORM_PACK32, Attachable | Storage}, // A2B10G10R10U
{VK_FORMAT_A1R5G5B5_UNORM_PACK16, Attachable}, // A1B5G5R5U (flipped with swizzle)
{VK_FORMAT_R8_UNORM, Attachable | Storage}, // R8U
+ {VK_FORMAT_R8_SNORM, Attachable | Storage}, // R8S
{VK_FORMAT_R8_UINT, Attachable | Storage}, // R8UI
{VK_FORMAT_R16G16B16A16_SFLOAT, Attachable | Storage}, // RGBA16F
{VK_FORMAT_R16G16B16A16_UNORM, Attachable | Storage}, // RGBA16U
diff --git a/src/video_core/renderer_vulkan/vk_device.cpp b/src/video_core/renderer_vulkan/vk_device.cpp
index fdaea4210..c4889ac88 100644
--- a/src/video_core/renderer_vulkan/vk_device.cpp
+++ b/src/video_core/renderer_vulkan/vk_device.cpp
@@ -98,6 +98,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(
VK_FORMAT_R8G8_SNORM,
VK_FORMAT_R8G8_UINT,
VK_FORMAT_R8_UNORM,
+ VK_FORMAT_R8_SNORM,
VK_FORMAT_R8_UINT,
VK_FORMAT_B10G11R11_UFLOAT_PACK32,
VK_FORMAT_R32_SFLOAT,