Add checks for Vulkan in menu and the barrier quirk

This commit is contained in:
FakeMichau
2025-08-20 22:38:10 +02:00
committed by TheRazerMD
parent 89ca9b719c
commit d52742a3c5
+1 -1
View File
@@ -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.