aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBilly Laws <blaws05@gmail.com>2023-02-18 17:44:06 +0000
committerbunnei <bunneidev@gmail.com>2023-06-03 00:05:31 -0700
commit58d420937cae48a709d83c971e2dc2b36aa0ecb7 (patch)
tree8ebb80ee9a7ee77895bfd2540633e0a3a459e641 /src
parentca2c3a6d5a42dc21604ab02cd1758633d8df358a (diff)
Disable push descriptors on adreno drivers
Regular descriptors are around 1.5x faster to update.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp4
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 0e182b4a0c..01540c10b3 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
extensions.extended_dynamic_state = false;
loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME);
+ LOG_WARNING(Render_Vulkan, "Adreno drivers have a slow VK_KHR_push_descriptor implementation");
+ extensions.push_descriptor = false;
+ loaded_extensions.erase(VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME);
+
// Patch the driver to enable BCn textures.
const auto major = (properties.properties.driverVersion >> 24) << 2;
const auto minor = (properties.properties.driverVersion >> 12) & 0xFFFU;