From bec3e156fb3144154fff0eb821b21b20bf99b1f4 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 13 May 2022 01:12:08 +0300 Subject: [PATCH] vk: Disable robust buffer access for ANV - Robust access is nice, but we don't actually need it --- rpcs3/Emu/RSX/VK/vkutils/device.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpcs3/Emu/RSX/VK/vkutils/device.cpp b/rpcs3/Emu/RSX/VK/vkutils/device.cpp index 4a351f9a5d..3877664782 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/device.cpp +++ b/rpcs3/Emu/RSX/VK/vkutils/device.cpp @@ -554,6 +554,14 @@ namespace vk } #endif + if (pgpu->get_driver_vendor() == driver_vendor::ANV && + pgpu->descriptor_update_after_bind_mask & (1 << VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER)) + { + // Just disable robust access for now. I'll revisit after ARC launches. + rsx_log.error("Robust buffer access is broken when enabled with EXT_descriptor_indexing on ANV"); + enabled_features.robustBufferAccess = VK_FALSE; + } + VkDeviceCreateInfo device = {}; device.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO; device.pNext = nullptr;