summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-17 00:39:06 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-02-13 06:16:21 +0100
commit40ed0cb92065ed13825e5830c26c918fe758d6d6 (patch)
tree92bfdb889be1e4c73f396cdc9cbb37599f2f7505
parentvulkan_device: Use designated initializers for features (diff)
downloadyuzu-40ed0cb92065ed13825e5830c26c918fe758d6d6.tar
yuzu-40ed0cb92065ed13825e5830c26c918fe758d6d6.tar.gz
yuzu-40ed0cb92065ed13825e5830c26c918fe758d6d6.tar.bz2
yuzu-40ed0cb92065ed13825e5830c26c918fe758d6d6.tar.lz
yuzu-40ed0cb92065ed13825e5830c26c918fe758d6d6.tar.xz
yuzu-40ed0cb92065ed13825e5830c26c918fe758d6d6.tar.zst
yuzu-40ed0cb92065ed13825e5830c26c918fe758d6d6.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index ec9cd5b34..a1dd406fb 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -379,7 +379,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
robustness2 = {
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT,
.pNext = nullptr,
- .robustBufferAccess2 = false,
+ .robustBufferAccess2 = true,
.robustImageAccess2 = true,
.nullDescriptor = true,
};
@@ -570,6 +570,7 @@ void Device::CheckSuitability() const {
const VkPhysicalDeviceFeatures features{physical.GetFeatures()};
const std::array feature_report{
std::make_pair(features.vertexPipelineStoresAndAtomics, "vertexPipelineStoresAndAtomics"),
+ std::make_pair(features.robustBufferAccess, "robustBufferAccess"),
std::make_pair(features.imageCubeArray, "imageCubeArray"),
std::make_pair(features.independentBlend, "independentBlend"),
std::make_pair(features.depthClamp, "depthClamp"),
@@ -738,7 +739,8 @@ std::vector<const char*> Device::LoadExtensions() {
robustness2.pNext = nullptr;
features.pNext = &robustness2;
physical.GetFeatures2KHR(features);
- if (robustness2.nullDescriptor && robustness2.robustImageAccess2) {
+ if (robustness2.nullDescriptor && robustness2.robustBufferAccess2 &&
+ robustness2.robustImageAccess2) {
extensions.push_back(VK_EXT_ROBUSTNESS_2_EXTENSION_NAME);
ext_robustness2 = true;
}