VERY experimental Nintendo Switch 2 emulator
C++
Merge pull request #10964 from bunnei/gpu-remove-qcom-check
bunneid8cda2c0b64a
diff --cc src/video_core/vulkan_common/vulkan_device.cppindex 421e71e5a1,248b098559..99ca7dbdaa--- a/src/video_core/vulkan_common/vulkan_device.cpp+++ b/src/video_core/vulkan_common/vulkan_device.cpp@@@ -526,16 -538,20 +538,28 @@@ Device::Device(VkInstance instance_, vkloaded_extensions.erase(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME);}}+ if (extensions.vertex_input_dynamic_state && is_qualcomm) {+ const u32 version = (properties.properties.driverVersion << 3) >> 3;+ if (version >= VK_MAKE_API_VERSION(0, 0, 676, 0)) {+ // Qualcomm Adreno 7xx drivers do not properly support vertex_input_dynamic_state.+ LOG_WARNING(+ Render_Vulkan,+ "Qualcomm Adreno 7xx drivers have broken VK_EXT_vertex_input_dynamic_state");+ features.vertex_input_dynamic_state.vertexInputDynamicState = false;+ extensions.vertex_input_dynamic_state = false;+ loaded_extensions.erase(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME);+ }+ }sets_per_pool = 64;+ if (extensions.extended_dynamic_state3 && is_amd_driver &&+ properties.properties.driverVersion >= VK_MAKE_API_VERSION(0, 2, 0, 270)) {+ LOG_WARNING(Render_Vulkan,+ "AMD drivers after 23.5.2 have broken extendedDynamicState3ColorBlendEquation");+ features.extended_dynamic_state3.extendedDynamicState3ColorBlendEnable = false;+ features.extended_dynamic_state3.extendedDynamicState3ColorBlendEquation = false;+ dynamic_state3_blending = false;+ }if (is_amd_driver) {// AMD drivers need a higher amount of Sets per Pool in certain circumstances like in XC2.sets_per_pool = 96;