aco: minor CounterMap::operator== fix

I don't think this matters for how we use CounterMap::operator==.

The BITSET_TEST() was unnecessary because of the BITSET_EQUAL above.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30478>
This commit is contained in:
Rhys Perry 2024-07-25 21:36:29 +01:00 committed by Marge Bot
parent f5b871f825
commit 9ab0c4b047

View file

@ -240,9 +240,7 @@ public:
unsigned i;
BITSET_FOREACH_SET (i, other.resident, Size) {
if (!BITSET_TEST(resident, i))
return false;
if (val[i] + base != other.val[i] + other.base)
if (MIN2(val[i] + base, Max) != MIN2(other.val[i] + other.base, Max))
return false;
}
return true;