Browse Source

Fix building issues

test-revert-gpu-optim
CamilleLaVey 1 month ago
committed by lizzie
parent
commit
b1208f03ee
  1. 8
      src/video_core/vulkan_common/vulkan_device.cpp

8
src/video_core/vulkan_common/vulkan_device.cpp

@ -107,14 +107,6 @@ constexpr std::array E5B9G9R9_UFLOAT_PACK32{
VK_FORMAT_UNDEFINED, VK_FORMAT_UNDEFINED,
}; };
/// Helper function to detect HDR formats that commonly fail with MSAA on some Android drivers
[[nodiscard]] constexpr bool IsProblematicHDRFormat(VkFormat format) {
// These formats are known to cause texture flickering/black screens across multiple game engines
// when combined with MSAA on certain Android drivers (Qualcomm < 800, Mali pre-maintenance5)
return format == VK_FORMAT_B10G11R11_UFLOAT_PACK32 || // UE5, custom engines
format == VK_FORMAT_E5B9G9R9_UFLOAT_PACK32; // Unity, RE Engine, others
}
} // namespace Alternatives } // namespace Alternatives
template <typename T> template <typename T>

Loading…
Cancel
Save