diff options
| author | 2023-02-18 17:44:06 +0000 | |
|---|---|---|
| committer | 2023-06-03 00:05:31 -0700 | |
| commit | 206f1304d61535224d442a155f9cc356bf95baf3 (patch) | |
| tree | 8ebb80ee9a7ee77895bfd2540633e0a3a459e641 /src | |
| parent | Disable VK_EXT_extended_dynamic_state on mali (diff) | |
| download | yuzu-206f1304d61535224d442a155f9cc356bf95baf3.tar.gz yuzu-206f1304d61535224d442a155f9cc356bf95baf3.tar.xz yuzu-206f1304d61535224d442a155f9cc356bf95baf3.zip | |
Disable push descriptors on adreno drivers
Regular descriptors are around 1.5x faster to update.
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/vulkan_common/vulkan_device.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp index 0e182b4a0..01540c10b 100644 --- a/src/video_core/vulkan_common/vulkan_device.cpp +++ b/src/video_core/vulkan_common/vulkan_device.cpp | |||
| @@ -367,6 +367,10 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR | |||
| 367 | extensions.extended_dynamic_state = false; | 367 | extensions.extended_dynamic_state = false; |
| 368 | loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME); | 368 | loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME); |
| 369 | 369 | ||
| 370 | LOG_WARNING(Render_Vulkan, "Adreno drivers have a slow VK_KHR_push_descriptor implementation"); | ||
| 371 | extensions.push_descriptor = false; | ||
| 372 | loaded_extensions.erase(VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME); | ||
| 373 | |||
| 370 | // Patch the driver to enable BCn textures. | 374 | // Patch the driver to enable BCn textures. |
| 371 | const auto major = (properties.properties.driverVersion >> 24) << 2; | 375 | const auto major = (properties.properties.driverVersion >> 24) << 2; |
| 372 | const auto minor = (properties.properties.driverVersion >> 12) & 0xFFFU; | 376 | const auto minor = (properties.properties.driverVersion >> 12) & 0xFFFU; |