From d52742a3c5dadce66dfd1433749ff4cc1de5a713 Mon Sep 17 00:00:00 2001 From: FakeMichau <49685661+FakeMichau@users.noreply.github.com> Date: Wed, 20 Aug 2025 22:38:10 +0200 Subject: [PATCH] Add checks for Vulkan in menu and the barrier quirk --- OptiScaler/hooks/HooksVk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OptiScaler/hooks/HooksVk.cpp b/OptiScaler/hooks/HooksVk.cpp index b80c14c7..bde4addb 100644 --- a/OptiScaler/hooks/HooksVk.cpp +++ b/OptiScaler/hooks/HooksVk.cpp @@ -71,7 +71,7 @@ static void hkvkCmdPipelineBarrier(VkCommandBuffer commandBuffer, VkPipelineStag const VkBufferMemoryBarrier* pBufferMemoryBarriers, uint32_t imageMemoryBarrierCount, const VkImageMemoryBarrier* pImageMemoryBarriers) { - if (State::Instance().gameQuirks & GameQuirk::VulkanDLSSBarrierFixup) + if (State::Instance().gameQuirks & GameQuirk::VulkanDLSSBarrierFixup && !State::Instance().isRunningOnNvidia) { // AMD drivers on the cards around RDNA2 didn't treat VK_IMAGE_LAYOUT_UNDEFINED in the same way Nvidia does. // Doesn't seem like a bug, just a different way of handling an UB but we need to adjust.