yuzu-emu
/
yuzu
Archived
1
0
Fork 0

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
This commit is contained in:
Morph 2023-07-26 20:21:37 -04:00
parent a1c355051e
commit 26658c2e93
1 changed files with 1 additions and 1 deletions

View File

@ -745,7 +745,7 @@ bool Device::TestDepthStencilBlits() const {
const auto test_features = [](VkFormatProperties props) {
return (props.optimalTilingFeatures & required_features) == required_features;
};
return test_features(format_properties.at(VK_FORMAT_D32_SFLOAT_S8_UINT)) &&
return test_features(format_properties.at(VK_FORMAT_D32_SFLOAT_S8_UINT)) ||
test_features(format_properties.at(VK_FORMAT_D24_UNORM_S8_UINT));
}