diff options
| author | 2021-01-17 03:12:42 -0300 | |
|---|---|---|
| committer | 2021-02-13 02:17:23 -0300 | |
| commit | 8fd518ec4097a19621cd9102648494107b7d0ae9 (patch) | |
| tree | 160e26372ea09dc5a0696d841f0df976106a7724 /src | |
| parent | video_core: Reimplement the buffer cache (diff) | |
| download | yuzu-8fd518ec4097a19621cd9102648494107b7d0ae9.tar.gz yuzu-8fd518ec4097a19621cd9102648494107b7d0ae9.tar.xz yuzu-8fd518ec4097a19621cd9102648494107b7d0ae9.zip | |
vulkan_device: Enable robustBufferAccess
Fix regression on Pascal on Animal Crossing: New Horizons, fixing a
validation error.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 403257375..f9bc73f84 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -207,7 +207,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR | |||
| 207 | .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, | 207 | .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2, |
| 208 | .pNext = nullptr, | 208 | .pNext = nullptr, |
| 209 | .features{ | 209 | .features{ |
| 210 | .robustBufferAccess = false, | 210 | .robustBufferAccess = true, |
| 211 | .fullDrawIndexUint32 = false, | 211 | .fullDrawIndexUint32 = false, |
| 212 | .imageCubeArray = true, | 212 | .imageCubeArray = true, |
| 213 | .independentBlend = true, | 213 | .independentBlend = true, |
| @@ -581,6 +581,7 @@ void Device::CheckSuitability(bool requires_swapchain) const { | |||
| 581 | } | 581 | } |
| 582 | const VkPhysicalDeviceFeatures features{physical.GetFeatures()}; | 582 | const VkPhysicalDeviceFeatures features{physical.GetFeatures()}; |
| 583 | const std::array feature_report{ | 583 | const std::array feature_report{ |
| 584 | std::make_pair(features.robustBufferAccess, "robustBufferAccess"), | ||
| 584 | std::make_pair(features.vertexPipelineStoresAndAtomics, "vertexPipelineStoresAndAtomics"), | 585 | std::make_pair(features.vertexPipelineStoresAndAtomics, "vertexPipelineStoresAndAtomics"), |
| 585 | std::make_pair(features.robustBufferAccess, "robustBufferAccess"), | 586 | std::make_pair(features.robustBufferAccess, "robustBufferAccess"), |
| 586 | std::make_pair(features.imageCubeArray, "imageCubeArray"), | 587 | std::make_pair(features.imageCubeArray, "imageCubeArray"), |