mirror of https://github.com/PCSX2/pcsx2.git
GS/Vulkan: Copy entire target when ds == tex
Also for DX12. Shadow Hearts 3 does a downsample, and we don't copy enough if we limit to the render area. Really, the texture cache should be handling this. But since we have the target height more correct now, the perf hit shouldn't be much.
This commit is contained in:
parent
0b98c7a352
commit
9cc852a097
|
@ -2565,8 +2565,8 @@ void GSDevice12::RenderHW(GSHWDrawConfig& config)
|
|||
config.drawarea.left, config.drawarea.top,
|
||||
config.drawarea.width(), config.drawarea.height());
|
||||
|
||||
copy_ds->SetState(GSTexture::State::Invalidated);
|
||||
CopyRect(config.ds, copy_ds, config.drawarea, config.drawarea.left, config.drawarea.top);
|
||||
pxAssert(copy_ds->GetState() == GSTexture::State::Invalidated);
|
||||
CopyRect(config.ds, copy_ds, GSVector4i(config.ds->GetSize()).zwxy(), 0, 0);
|
||||
PSSetShaderResource(0, copy_ds, true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3009,7 +3009,8 @@ void GSDeviceVK::RenderHW(GSHWDrawConfig& config)
|
|||
config.drawarea.left, config.drawarea.top,
|
||||
config.drawarea.width(), config.drawarea.height());
|
||||
|
||||
CopyRect(config.ds, copy_ds, config.drawarea, config.drawarea.left, config.drawarea.top);
|
||||
pxAssert(copy_ds->GetState() == GSTexture::State::Invalidated);
|
||||
CopyRect(config.ds, copy_ds, GSVector4i(config.ds->GetSize()).zwxy(), 0, 0);
|
||||
PSSetShaderResource(0, copy_ds, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue