VERY experimental Nintendo Switch 2 emulator
C++
vulkan_device: Dynamically control scaled format emulation based on dynamic state setting fixing the "0" option
JPikachu0de8f866dbb4
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cppindex 9426d31faf..5ac807b908 100644--- a/src/video_core/vulkan_common/vulkan_device.cpp+++ b/src/video_core/vulkan_common/vulkan_device.cpp@@ -497,6 +497,15 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHRLOG_WARNING(Render_Vulkan,"Qualcomm drivers have a slow VK_KHR_push_descriptor implementation");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)// Patch the driver to enable BCn textures.