yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

video_core: vulkan_device: Change to driver version check.

This commit is contained in:
bunnei 2023-07-03 14:25:06 -07:00
parent ddcd89afd4
commit cef7aaa8ec
1 changed files with 23 additions and 15 deletions

View File

@ -498,14 +498,18 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME); loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME);
} }
} }
if (extensions.extended_dynamic_state2 && is_qualcomm && is_s8gen2) { if (extensions.extended_dynamic_state2 && is_qualcomm) {
// Qualcomm S8gen2 drivers do not properly support extended_dynamic_state2. const u32 version = (properties.properties.driverVersion << 3) >> 3;
LOG_WARNING(Render_Vulkan, "Qualcomm drivers have broken VK_EXT_extended_dynamic_state2"); if (version >= VK_MAKE_API_VERSION(0, 0, 676, 0)) {
features.extended_dynamic_state2.extendedDynamicState2 = false; // Qualcomm Adreno 7xx drivers do not properly support extended_dynamic_state2.
features.extended_dynamic_state2.extendedDynamicState2LogicOp = false; LOG_WARNING(Render_Vulkan,
features.extended_dynamic_state2.extendedDynamicState2PatchControlPoints = false; "Qualcomm Adreno 7xx drivers have broken VK_EXT_extended_dynamic_state2");
extensions.extended_dynamic_state2 = false; features.extended_dynamic_state2.extendedDynamicState2 = false;
loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME); features.extended_dynamic_state2.extendedDynamicState2LogicOp = false;
features.extended_dynamic_state2.extendedDynamicState2PatchControlPoints = false;
extensions.extended_dynamic_state2 = false;
loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_2_EXTENSION_NAME);
}
} }
if (extensions.extended_dynamic_state3 && is_radv) { if (extensions.extended_dynamic_state3 && is_radv) {
LOG_WARNING(Render_Vulkan, "RADV has broken extendedDynamicState3ColorBlendEquation"); LOG_WARNING(Render_Vulkan, "RADV has broken extendedDynamicState3ColorBlendEquation");
@ -534,13 +538,17 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
loaded_extensions.erase(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME); loaded_extensions.erase(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME);
} }
} }
if (extensions.vertex_input_dynamic_state && is_qualcomm && is_s8gen2) { if (extensions.vertex_input_dynamic_state && is_qualcomm) {
// Qualcomm S8gen2 drivers do not properly support vertex_input_dynamic_state. const u32 version = (properties.properties.driverVersion << 3) >> 3;
LOG_WARNING(Render_Vulkan, if (version >= VK_MAKE_API_VERSION(0, 0, 676, 0)) {
"Qualcomm drivers have broken VK_EXT_vertex_input_dynamic_state"); // Qualcomm Adreno 7xx drivers do not properly support vertex_input_dynamic_state.
features.vertex_input_dynamic_state.vertexInputDynamicState = false; LOG_WARNING(
extensions.vertex_input_dynamic_state = false; Render_Vulkan,
loaded_extensions.erase(VK_EXT_VERTEX_INPUT_DYNAMIC_STATE_EXTENSION_NAME); "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; sets_per_pool = 64;