GS/DX12: Fix render pass optimization not being properly hit.

The depth target render pass optimization wasn't being hit properly, so let's synch it with the other renderers.
This commit is contained in:
lightningterror committed 2026-04-15 13:08:12 +02:00
1 parent 0fc1b66a9b
commit bf5be8ed4f
1 file changed
+6 -6
+6 -6
View File
@@ -4288,12 +4288,12 @@ void GSDevice12::RenderHW(GSHWDrawConfig& config)
draw_rt = m_current_render_target;
m_pipeline_selector.rt = true;
}
}
else if (!draw_ds && m_current_depth_target && config.tex != m_current_depth_target &&
m_current_depth_target->GetSize() == draw_rt->GetSize())
{
draw_ds = m_current_depth_target;
m_pipeline_selector.ds = true;
else if (!draw_ds && m_current_depth_target && config.tex != m_current_depth_target &&
m_current_depth_target->GetSize() == draw_rt->GetSize())
{
draw_ds = m_current_depth_target;
m_pipeline_selector.ds = true;
}
}
GSTexture12* draw_ds_as_rt = static_cast<GSTexture12*>(config.ds_as_rt);