mirror of https://github.com/PCSX2/pcsx2.git
gsdx: add a warning on vertex trace
Due to a division by 2, depth lsb bit is always 0 I'm not sure it is critical but let's keep a note for the future
This commit is contained in:
parent
d1e07295e7
commit
4612b79575
|
@ -446,6 +446,11 @@ void GSVertexTrace::FindMinMax(const void* vertex, const uint32* index, int coun
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME/WARNING. A division by 2 is done on the depth. I suspect to avoid
|
||||||
|
// negative value. However it means that we lost the lsb bit. m_eq.z could
|
||||||
|
// be true if depth isn't constant but close enough. It also imply that
|
||||||
|
// pmin.z & 1 == 0 and pax.z & 1 == 0
|
||||||
|
|
||||||
#if _M_SSE >= 0x401
|
#if _M_SSE >= 0x401
|
||||||
|
|
||||||
pmin = pmin.blend16<0x30>(pmin.srl32(1));
|
pmin = pmin.blend16<0x30>(pmin.srl32(1));
|
||||||
|
|
Loading…
Reference in New Issue