|
|
@ -491,15 +491,6 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR |
|
|
LOG_WARNING(Render_Vulkan, |
|
|
LOG_WARNING(Render_Vulkan, |
|
|
"Qualcomm drivers have a slow VK_KHR_push_descriptor implementation"); |
|
|
"Qualcomm drivers have a slow VK_KHR_push_descriptor implementation"); |
|
|
RemoveExtension(extensions.push_descriptor, VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME); |
|
|
RemoveExtension(extensions.push_descriptor, VK_KHR_PUSH_DESCRIPTOR_EXTENSION_NAME); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (Settings::values.dyna_state.GetValue() == 0) { |
|
|
|
|
|
must_emulate_scaled_formats = true; |
|
|
|
|
|
LOG_INFO(Render_Vulkan, "Dynamic state is disabled (dyna_state = 0), forcing scaled format emulation ON"); |
|
|
|
|
|
} else { |
|
|
|
|
|
must_emulate_scaled_formats = false; |
|
|
|
|
|
LOG_INFO(Render_Vulkan, "Dynamic state is enabled (dyna_state = 1-3), disabling scaled format emulation"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
|
|
|
#if defined(ANDROID) && defined(ARCHITECTURE_arm64)
|
|
|
// Patch the driver to enable BCn textures.
|
|
|
// Patch the driver to enable BCn textures.
|
|
|
@ -720,6 +711,15 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR |
|
|
dynamic_state3_enables = true; |
|
|
dynamic_state3_enables = true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Scaled formats must be emulated if dynamic state is disabled
|
|
|
|
|
|
if (Settings::values.dyna_state.GetValue() == 0) { |
|
|
|
|
|
must_emulate_scaled_formats = true; |
|
|
|
|
|
LOG_INFO(Render_Vulkan, "Dynamic state is disabled (dyna_state = 0), forcing scaled format emulation ON"); |
|
|
|
|
|
} else { |
|
|
|
|
|
must_emulate_scaled_formats = false; |
|
|
|
|
|
LOG_INFO(Render_Vulkan, "Dynamic state is enabled (dyna_state = 1-3), disabling scaled format emulation"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
logical = vk::Device::Create(physical, queue_cis, ExtensionListForVulkan(loaded_extensions), |
|
|
logical = vk::Device::Create(physical, queue_cis, ExtensionListForVulkan(loaded_extensions), |
|
|
first_next, dld); |
|
|
first_next, dld); |
|
|
|
|
|
|
|
|
|