diff options
| author | 2023-07-26 20:21:37 -0400 | |
|---|---|---|
| committer | 2023-07-26 20:21:37 -0400 | |
| commit | 26658c2e9324eb7007f882c78e7bf4e2d1ce4473 (patch) | |
| tree | cbb1e95333aec13c28090d7fc8ae364653b21822 /src | |
| parent | Merge pull request #11128 from german77/discord (diff) | |
| download | yuzu-26658c2e9324eb7007f882c78e7bf4e2d1ce4473.tar.gz yuzu-26658c2e9324eb7007f882c78e7bf4e2d1ce4473.tar.xz yuzu-26658c2e9324eb7007f882c78e7bf4e2d1ce4473.zip | |
vulkan_device: Return true if either depth/stencil format supports blit
On devices that don't support D24S8 but supports D32S8, this should still return true if D32S8 supports src and dst blit
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index e04852e01..f84c1e00c 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -745,7 +745,7 @@ bool Device::TestDepthStencilBlits() const { | |||
| 745 | const auto test_features = [](VkFormatProperties props) { | 745 | const auto test_features = [](VkFormatProperties props) { |
| 746 | return (props.optimalTilingFeatures & required_features) == required_features; | 746 | return (props.optimalTilingFeatures & required_features) == required_features; |
| 747 | }; | 747 | }; |
| 748 | return test_features(format_properties.at(VK_FORMAT_D32_SFLOAT_S8_UINT)) && | 748 | return test_features(format_properties.at(VK_FORMAT_D32_SFLOAT_S8_UINT)) || |
| 749 | test_features(format_properties.at(VK_FORMAT_D24_UNORM_S8_UINT)); | 749 | test_features(format_properties.at(VK_FORMAT_D24_UNORM_S8_UINT)); |
| 750 | } | 750 | } |
| 751 | 751 | ||