diff --git a/pcsx2/GS/Renderers/DX11/GSDevice11.cpp b/pcsx2/GS/Renderers/DX11/GSDevice11.cpp index 1dd7600f7e..1b428f532c 100644 --- a/pcsx2/GS/Renderers/DX11/GSDevice11.cpp +++ b/pcsx2/GS/Renderers/DX11/GSDevice11.cpp @@ -3074,7 +3074,7 @@ void GSDevice11::RenderHW(GSHWDrawConfig& config) const GSVector2i rtsize = (config.rt ? config.rt : config.ds)->GetSize(); GSTexture* colclip_rt = g_gs_device->GetColorClipTexture(); GSTexture* draw_rt = config.ps.HasColorROV() ? nullptr : config.rt; - GSTexture* draw_ds_as_rt = config.ps.IsFeedbackLoopDepth() ? m_ds_as_rt : nullptr; + GSTexture* draw_ds_as_rt = (config.ps.IsFeedbackLoopDepth() && !config.ps.HasDepthROV()) ? m_ds_as_rt : nullptr; GSTexture* draw_ds = config.ps.HasDepthROV() ? nullptr : config.ds; GSTexture* draw_rt_rov = config.ps.HasColorROV() ? config.rt : nullptr; GSTexture* draw_ds_rov = config.ps.HasDepthROV() ? config.ds : nullptr; diff --git a/pcsx2/GS/Renderers/DX12/GSDevice12.cpp b/pcsx2/GS/Renderers/DX12/GSDevice12.cpp index 6ebebfe7c4..c3b8cc3ba6 100644 --- a/pcsx2/GS/Renderers/DX12/GSDevice12.cpp +++ b/pcsx2/GS/Renderers/DX12/GSDevice12.cpp @@ -4630,7 +4630,8 @@ void GSDevice12::RenderHW(GSHWDrawConfig& config) m_pipeline_selector.ds = true; } - GSTexture12* draw_ds_as_rt = config.ps.IsFeedbackLoopDepth() ? static_cast(m_ds_as_rt) : nullptr; + GSTexture12* draw_ds_as_rt = (config.ps.IsFeedbackLoopDepth() && !config.ps.HasDepthROV()) ? + static_cast(m_ds_as_rt) : nullptr; const bool feedback_rt = draw_rt && (((config.require_one_barrier || (config.require_full_barrier && m_features.texture_barrier)) && (config.IsFeedbackLoopRT(config.ps) || config.IsFeedbackLoopRT(config.alpha_second_pass.ps)))); diff --git a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp index 54e4e81386..d18aa99d94 100644 --- a/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp +++ b/pcsx2/GS/Renderers/Vulkan/GSDeviceVK.cpp @@ -6243,7 +6243,8 @@ void GSDeviceVK::RenderHW(GSHWDrawConfig& config) const GSVector2i rtsize(config.rt ? config.rt->GetSize() : config.ds->GetSize()); FramebufferInfo fb; fb.rt = config.ps.HasColorROV() ? nullptr : static_cast(config.rt); - fb.ds_as_rt = config.ps.HasDepthROV() ? nullptr : static_cast(m_ds_as_rt); + fb.ds_as_rt = (config.ps.IsFeedbackLoopDepth() && !config.ps.HasDepthROV()) ? + static_cast(m_ds_as_rt) : nullptr; fb.ds = config.ps.HasDepthROV() ? nullptr : static_cast(config.ds); GSTextureVK* draw_rt_rov = config.ps.HasColorROV() ? static_cast(config.rt) : nullptr; GSTextureVK* draw_ds_rov = config.ps.HasDepthROV() ? static_cast(config.ds) : nullptr; @@ -6728,7 +6729,7 @@ void GSDeviceVK::UpdateHWPipelineSelector(GSHWDrawConfig& config, PipelineSelect pipe.cms.key = config.ps.HasColorROV() ? GSHWDrawConfig::ColorMaskSelector().key : config.colormask.key; pipe.topology = static_cast(config.topology); pipe.rt = config.rt != nullptr && !config.ps.HasColorROV(); - pipe.ds_as_rt = m_ds_as_rt != nullptr; + pipe.ds_as_rt = m_ds_as_rt != nullptr && config.ps.IsFeedbackLoopDepth() && !config.ps.HasDepthROV(); pipe.ds = config.ds != nullptr && !config.ps.HasDepthROV(); FeedbackLoopFlags flags = FeedbackLoopFlags::None; if (m_features.texture_barrier)