aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/vulkan_common/vulkan_device.cpp
diff options
context:
space:
mode:
authorJoshua Ashton <joshua@froggi.es>2021-04-11 09:47:23 +0100
committerJoshua Ashton <joshua@froggi.es>2021-04-11 09:48:38 +0100
commitf69cfb591581f6d761e54506cfdc660f8b0697e2 (patch)
tree4f73cea3885006a83bc59a3a987929027d2c20f1 /src/video_core/vulkan_common/vulkan_device.cpp
parentee383f72c80387f030178eb1aa05ee7c8ec6369b (diff)
vulkan_device: Enable EXT_robustness2 features
When this was being made mandatory, these enablement of these features was removed, but this is still needed. Fixes: bf10ce380b77 ("vulkan_device: Require VK_EXT_robustness2")
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.cpp')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 697cb16b94..230b8717b6 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -294,6 +294,15 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
};
SetNext(next, bit8_storage);
+ VkPhysicalDeviceRobustness2FeaturesEXT robustness2{
+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT,
+ .pNext = nullptr,
+ .robustBufferAccess2 = true,
+ .robustImageAccess2 = true,
+ .nullDescriptor = true,
+ };
+ SetNext(next, robustness2);
+
VkPhysicalDeviceHostQueryResetFeaturesEXT host_query_reset{
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES_EXT,
.pNext = nullptr,