mirror of https://github.com/PCSX2/pcsx2.git
GSDX: Clear Target::m_valid after a full Read() for performance (and accuracy?) Probably doesn't match the original intent but it matches the current usage.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5293 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
6bb9339223
commit
1ed80f320e
|
@ -452,7 +452,10 @@ void GSTextureCache::InvalidateLocalMem(GSOffset* o, const GSVector4i& r)
|
|||
// note: r.rintersect breaks Wizardry and Chaos Legion
|
||||
// Read(t, t->m_valid) works in all tested games but is very slow in GUST titles ><
|
||||
if (r.x == 0 && r.y == 0) // Full screen read?
|
||||
{
|
||||
Read(t, t->m_valid);
|
||||
t->m_valid = GSVector4i::zero();
|
||||
}
|
||||
else // Block level read?
|
||||
Read(t, r.rintersect(t->m_valid));
|
||||
}
|
||||
|
@ -771,7 +774,10 @@ GSTextureCache::Source* GSTextureCache::CreateSource(const GIFRegTEX0& TEX0, con
|
|||
else
|
||||
{
|
||||
if (dst)
|
||||
{
|
||||
Read(dst, dst->m_valid);
|
||||
dst->m_valid = GSVector4i::zero();
|
||||
}
|
||||
if (m_paltex && psm.pal > 0)
|
||||
{
|
||||
src->m_texture = m_renderer->m_dev->CreateTexture(tw, th, Get8bitFormat());
|
||||
|
|
Loading…
Reference in New Issue