aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authoryuzubot <[email protected]>2024-03-04 13:02:53 +0000
committeryuzubot <[email protected]>2024-03-04 13:02:53 +0000
commit2ddac7b02b660bbc7bdfe4fef240699df6d52e64 (patch)
treeca949e5e36756cb1a4e496f59da772c91e688f4d /src
parent15e6e48bef0216480661444a8d8b348c1cca47bb (diff)
downloadyuzu-mainline-2ddac7b02b660bbc7bdfe4fef240699df6d52e64.tar.gz
yuzu-mainline-2ddac7b02b660bbc7bdfe4fef240699df6d52e64.zip
"Merge Tagged PR 13178"
Diffstat (limited to 'src')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index b94924a58..9e01155b1 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -40,6 +40,12 @@ constexpr std::array DEPTH24_UNORM_STENCIL8_UINT{
VK_FORMAT_UNDEFINED,
};
+constexpr std::array DEPTH24_UNORM_DONTCARE8{
+ VK_FORMAT_D32_SFLOAT,
+ VK_FORMAT_D16_UNORM,
+ VK_FORMAT_UNDEFINED,
+};
+
constexpr std::array DEPTH16_UNORM_STENCIL8_UINT{
VK_FORMAT_D24_UNORM_S8_UINT,
VK_FORMAT_D32_SFLOAT_S8_UINT,
@@ -95,6 +101,8 @@ constexpr const VkFormat* GetFormatAlternatives(VkFormat format) {
return Alternatives::STENCIL8_UINT.data();
case VK_FORMAT_D24_UNORM_S8_UINT:
return Alternatives::DEPTH24_UNORM_STENCIL8_UINT.data();
+ case VK_FORMAT_X8_D24_UNORM_PACK32:
+ return Alternatives::DEPTH24_UNORM_DONTCARE8.data();
case VK_FORMAT_D16_UNORM_S8_UINT:
return Alternatives::DEPTH16_UNORM_STENCIL8_UINT.data();
case VK_FORMAT_B5G6R5_UNORM_PACK16: