mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Don't try to double-buffer preload depth targets
Spec violations if we do.
This commit is contained in:
parent
b0c3a1e23f
commit
78f751959d
|
@ -2280,6 +2280,9 @@ bool GSTextureCache::PreloadTarget(GIFRegTEX0 TEX0, const GSVector2i& size, cons
|
|||
|
||||
dst->UpdateValidity(GSVector4i::loadh(valid_size));
|
||||
|
||||
// Can't do channel writes to depth targets, and DirectX can't partial copy depth targets.
|
||||
if (psm_s.depth == 0)
|
||||
{
|
||||
for (int type = 0; type < 2; type++)
|
||||
{
|
||||
auto& list = m_dst[type];
|
||||
|
@ -2357,6 +2360,7 @@ bool GSTextureCache::PreloadTarget(GIFRegTEX0 TEX0, const GSVector2i& size, cons
|
|||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return hw_clear;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue