|
|
|
@ -1131,8 +1131,6 @@ bool Device::GetSuitability(bool requires_swapchain) { |
|
|
|
|
|
|
|
if (u32(Settings::values.dyna_state.GetValue()) == 0) { |
|
|
|
LOG_INFO(Render_Vulkan, "Extended Dynamic State disabled by user setting, clearing all EDS features"); |
|
|
|
features.custom_border_color.customBorderColors = false; |
|
|
|
features.custom_border_color.customBorderColorWithoutFormat = false; |
|
|
|
features.extended_dynamic_state.extendedDynamicState = false; |
|
|
|
features.extended_dynamic_state2.extendedDynamicState2 = false; |
|
|
|
features.extended_dynamic_state3.extendedDynamicState3ColorBlendEnable = false; |
|
|
|
@ -1148,17 +1146,10 @@ bool Device::GetSuitability(bool requires_swapchain) { |
|
|
|
|
|
|
|
void Device::RemoveUnsuitableExtensions() { |
|
|
|
// VK_EXT_custom_border_color
|
|
|
|
// Enable extension if driver supports it, then check individual features
|
|
|
|
// - customBorderColors: Required to use VK_BORDER_COLOR_FLOAT_CUSTOM_EXT
|
|
|
|
// - customBorderColorWithoutFormat: Optional, allows VK_FORMAT_UNDEFINED
|
|
|
|
// If only customBorderColors is available, we must provide a specific format
|
|
|
|
if (extensions.custom_border_color) { |
|
|
|
// Verify that at least customBorderColors is available
|
|
|
|
if (!features.custom_border_color.customBorderColors) { |
|
|
|
LOG_WARNING(Render_Vulkan, |
|
|
|
"VK_EXT_custom_border_color reported but customBorderColors feature not available, disabling"); |
|
|
|
extensions.custom_border_color = false; |
|
|
|
} |
|
|
|
extensions.custom_border_color = |
|
|
|
features.custom_border_color.customBorderColors && |
|
|
|
features.custom_border_color.customBorderColorWithoutFormat; |
|
|
|
} |
|
|
|
RemoveExtensionFeatureIfUnsuitable(extensions.custom_border_color, features.custom_border_color, |
|
|
|
VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME); |
|
|
|
|