From 7805d27e675c9c8c620bdd327810b12c644708e9 Mon Sep 17 00:00:00 2001 From: gleng <906346+gleng@users.noreply.github.com> Date: Mon, 10 Jul 2023 18:00:19 -0700 Subject: [PATCH] MacOS: Fix rendering on AMD GPUs (#5446) * MacOS: Fix rendering on AMD GPUs * Only disable MultiViewPort on MoltenVK for AMD GPUs --- src/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs b/src/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs index 8f0c73061..d0bd1b2cc 100644 --- a/src/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs +++ b/src/Ryujinx.Graphics.Vulkan/VulkanRenderer.cs @@ -315,7 +315,7 @@ namespace Ryujinx.Graphics.Vulkan features2.Features.ShaderStorageImageMultisample, _physicalDevice.IsDeviceExtensionPresent(ExtConditionalRendering.ExtensionName), _physicalDevice.IsDeviceExtensionPresent(ExtExtendedDynamicState.ExtensionName), - features2.Features.MultiViewport, + features2.Features.MultiViewport && !(IsMoltenVk && Vendor == Vendor.Amd), // Workaround for AMD on MoltenVK issue featuresRobustness2.NullDescriptor || IsMoltenVk, _physicalDevice.IsDeviceExtensionPresent(KhrPushDescriptor.ExtensionName), featuresPrimitiveTopologyListRestart.PrimitiveTopologyListRestart,