diff options
author | Juan Linietsky <reduzio@gmail.com> | 2020-12-18 21:51:11 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 21:51:11 -0300 |
commit | af2703c732893d089094f78cade8e08a84f3d2f1 (patch) | |
tree | 0c2ff073f612ea9649942142911f97b3fe27a499 | |
parent | bd0dc4d4dde5aa520b143ec95eff18d9f9928466 (diff) | |
parent | 985892bfec92cd37baf887caa6c9931f05eaca53 (diff) |
Merge pull request #44509 from reduz/disable-robust-buffer-access
Turn off robust buffer access by default.
-rw-r--r-- | drivers/vulkan/vulkan_context.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/vulkan/vulkan_context.cpp b/drivers/vulkan/vulkan_context.cpp index 855c8a2d68..1f4092745a 100644 --- a/drivers/vulkan/vulkan_context.cpp +++ b/drivers/vulkan/vulkan_context.cpp @@ -493,6 +493,8 @@ Error VulkanContext::_create_physical_device() { // features based on this query vkGetPhysicalDeviceFeatures(gpu, &physical_device_features); + physical_device_features.robustBufferAccess = false; //turn off robust buffer access, which can hamper performance on some hardware + #define GET_INSTANCE_PROC_ADDR(inst, entrypoint) \ { \ fp##entrypoint = (PFN_vk##entrypoint)vkGetInstanceProcAddr(inst, "vk" #entrypoint); \ |