mirror of https://github.com/PCSX2/pcsx2.git
GS: Remove unordered runion()
We're working with rectangles everywhere.
This commit is contained in:
parent
ccb23868e5
commit
153b492a79
|
@ -2939,7 +2939,7 @@ GSState::PRIM_OVERLAP GSState::PrimitiveOverlap()
|
|||
|
||||
if (all.rintersect(sprite).rempty())
|
||||
{
|
||||
all = all.runion_ordered(sprite);
|
||||
all = all.runion(sprite);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -168,28 +168,6 @@ public:
|
|||
}
|
||||
|
||||
__forceinline GSVector4i runion(const GSVector4i& a) const
|
||||
{
|
||||
int i = (upl64(a) < uph64(a)).mask();
|
||||
|
||||
if (i == 0xffff)
|
||||
{
|
||||
return runion_ordered(a);
|
||||
}
|
||||
|
||||
if ((i & 0x00ff) == 0x00ff)
|
||||
{
|
||||
return *this;
|
||||
}
|
||||
|
||||
if ((i & 0xff00) == 0xff00)
|
||||
{
|
||||
return a;
|
||||
}
|
||||
|
||||
return GSVector4i::zero();
|
||||
}
|
||||
|
||||
__forceinline GSVector4i runion_ordered(const GSVector4i& a) const
|
||||
{
|
||||
return min_i32(a).upl64(max_i32(a).srl<8>());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue