summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-12-08 20:47:05 +0100
committerGitHub <noreply@github.com>2021-12-08 20:47:05 +0100
commit7dd2764f2a7e3bc88ed12b160aceed7dda007329 (patch)
tree4362fffcbba8be1f937f4191ecab19d54eb7e6da
parentMerge pull request #7525 from german77/notifa (diff)
parentrenderer_vulkan: Add R16G16_UINT (diff)
downloadyuzu-7dd2764f2a7e3bc88ed12b160aceed7dda007329.tar
yuzu-7dd2764f2a7e3bc88ed12b160aceed7dda007329.tar.gz
yuzu-7dd2764f2a7e3bc88ed12b160aceed7dda007329.tar.bz2
yuzu-7dd2764f2a7e3bc88ed12b160aceed7dda007329.tar.lz
yuzu-7dd2764f2a7e3bc88ed12b160aceed7dda007329.tar.xz
yuzu-7dd2764f2a7e3bc88ed12b160aceed7dda007329.tar.zst
yuzu-7dd2764f2a7e3bc88ed12b160aceed7dda007329.zip
-rw-r--r--src/video_core/renderer_vulkan/maxwell_to_vk.cpp2
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
index 31adada56..e38cfbc6c 100644
--- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
+++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
@@ -162,7 +162,7 @@ struct FormatTuple {
{VK_FORMAT_UNDEFINED}, // R16_SINT
{VK_FORMAT_R16G16_UNORM, Attachable | Storage}, // R16G16_UNORM
{VK_FORMAT_R16G16_SFLOAT, Attachable | Storage}, // R16G16_FLOAT
- {VK_FORMAT_UNDEFINED}, // R16G16_UINT
+ {VK_FORMAT_R16G16_UINT, Attachable | Storage}, // R16G16_UINT
{VK_FORMAT_R16G16_SINT, Attachable | Storage}, // R16G16_SINT
{VK_FORMAT_R16G16_SNORM, Attachable | Storage}, // R16G16_SNORM
{VK_FORMAT_UNDEFINED}, // R32G32B32_FLOAT
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 70c52aaac..7bf5b6578 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -130,6 +130,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties(vk::Physica
VK_FORMAT_R16G16_UNORM,
VK_FORMAT_R16G16_SNORM,
VK_FORMAT_R16G16_SFLOAT,
+ VK_FORMAT_R16G16_UINT,
VK_FORMAT_R16G16_SINT,
VK_FORMAT_R16_UNORM,
VK_FORMAT_R16_SNORM,