mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
Merge pull request #10964 from bunnei/gpu-remove-qcom-check
video_core: vulkan_device: Fix S8Gen2 dynamic state checks.
This commit is contained in:
commit
44af2e32a4
1 changed files with 27 additions and 3 deletions
|
@ -485,7 +485,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
|
||||||
loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME);
|
loaded_extensions.erase(VK_EXT_EXTENDED_DYNAMIC_STATE_EXTENSION_NAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (extensions.extended_dynamic_state2 && (is_radv || is_qualcomm)) {
|
if (extensions.extended_dynamic_state2 && is_radv) {
|
||||||
const u32 version = (properties.properties.driverVersion << 3) >> 3;
|
const u32 version = (properties.properties.driverVersion << 3) >> 3;
|
||||||
if (version < VK_MAKE_API_VERSION(0, 22, 3, 1)) {
|
if (version < VK_MAKE_API_VERSION(0, 22, 3, 1)) {
|
||||||
LOG_WARNING(
|
LOG_WARNING(
|
||||||
|
@ -498,6 +498,19 @@ 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) {
|
||||||
|
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 extended_dynamic_state2.
|
||||||
|
LOG_WARNING(Render_Vulkan,
|
||||||
|
"Qualcomm Adreno 7xx drivers have broken VK_EXT_extended_dynamic_state2");
|
||||||
|
features.extended_dynamic_state2.extendedDynamicState2 = false;
|
||||||
|
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");
|
||||||
features.extended_dynamic_state3.extendedDynamicState3ColorBlendEnable = false;
|
features.extended_dynamic_state3.extendedDynamicState3ColorBlendEnable = false;
|
||||||
|
@ -512,8 +525,7 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
|
||||||
dynamic_state3_enables = false;
|
dynamic_state3_enables = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (extensions.vertex_input_dynamic_state && (is_radv || is_qualcomm)) {
|
if (extensions.vertex_input_dynamic_state && is_radv) {
|
||||||
// Qualcomm S8gen2 drivers do not properly support vertex_input_dynamic_state.
|
|
||||||
// TODO(ameerj): Blacklist only offending driver versions
|
// TODO(ameerj): Blacklist only offending driver versions
|
||||||
// TODO(ameerj): Confirm if RDNA1 is affected
|
// TODO(ameerj): Confirm if RDNA1 is affected
|
||||||
const bool is_rdna2 =
|
const bool is_rdna2 =
|
||||||
|
@ -526,6 +538,18 @@ 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) {
|
||||||
|
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;
|
sets_per_pool = 64;
|
||||||
if (extensions.extended_dynamic_state3 && is_amd_driver &&
|
if (extensions.extended_dynamic_state3 && is_amd_driver &&
|
||||||
|
|
Loading…
Reference in a new issue