mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-12-03 19:33:33 +01:00
GS:HW: Do not use cached DS as RT with ROV.
This commit is contained in:
1 parent
76843ba8ce
commit
9f6e0859cd
3 files changed
+6
-4
No files matched your search
@@ -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;
|
||||
|
||||
@@ -4630,7 +4630,8 @@ void GSDevice12::RenderHW(GSHWDrawConfig& config)
|
||||
m_pipeline_selector.ds = true;
|
||||
}
|
||||
|
||||
GSTexture12* draw_ds_as_rt = config.ps.IsFeedbackLoopDepth() ? static_cast<GSTexture12*>(m_ds_as_rt) : nullptr;
|
||||
GSTexture12* draw_ds_as_rt = (config.ps.IsFeedbackLoopDepth() && !config.ps.HasDepthROV()) ?
|
||||
static_cast<GSTexture12*>(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))));
|
||||
|
||||
@@ -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<GSTextureVK*>(config.rt);
|
||||
fb.ds_as_rt = config.ps.HasDepthROV() ? nullptr : static_cast<GSTextureVK*>(m_ds_as_rt);
|
||||
fb.ds_as_rt = (config.ps.IsFeedbackLoopDepth() && !config.ps.HasDepthROV()) ?
|
||||
static_cast<GSTextureVK*>(m_ds_as_rt) : nullptr;
|
||||
fb.ds = config.ps.HasDepthROV() ? nullptr : static_cast<GSTextureVK*>(config.ds);
|
||||
GSTextureVK* draw_rt_rov = config.ps.HasColorROV() ? static_cast<GSTextureVK*>(config.rt) : nullptr;
|
||||
GSTextureVK* draw_ds_rov = config.ps.HasDepthROV() ? static_cast<GSTextureVK*>(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<u32>(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)
|
||||
|
||||
Reference in new issue
Block a user