mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-20 01:39:34 +02:00
GS/HW: Try to use barriers first if depth buffer isn't safe to read on shuffles.
This commit is contained in:
1 parent
3556089527
commit
6bdd913a67
1 file changed
+7
-2
@@ -11181,9 +11181,14 @@ void GSRendererHW::EndHLEHardwareDraw(bool force_copy_on_hazard /* = false */)
|
||||
config.require_one_barrier = !features.framebuffer_fetch;
|
||||
}
|
||||
else if (!force_copy_on_hazard && config.tex == config.ds && !config.depth.zwe &&
|
||||
features.test_and_sample_depth)
|
||||
(features.test_and_sample_depth || features.feedback_loops()))
|
||||
{
|
||||
// Safe to read depth buffer.
|
||||
// Check if depth buffer is safe to read.
|
||||
if (!features.test_and_sample_depth)
|
||||
{
|
||||
config.tex_hazard = GSHWDrawConfig::TEX_HAZARD_DEPTH;
|
||||
config.require_one_barrier = !features.framebuffer_fetch;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user