mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-05-29 21:13:14 +00:00
Add checks for Vulkan in menu and the barrier quirk
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user