GS: Remove unordered runion()

We're working with rectangles everywhere.
This commit is contained in:
Stenzek 2024-06-08 22:59:29 +10:00 committed by Connor McLaughlin
parent ccb23868e5
commit 153b492a79
2 changed files with 1 additions and 23 deletions

View File

@ -2939,7 +2939,7 @@ GSState::PRIM_OVERLAP GSState::PrimitiveOverlap()
if (all.rintersect(sprite).rempty())
{
all = all.runion_ordered(sprite);
all = all.runion(sprite);
}
else
{

View File

@ -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>());
}