diff --git a/src/panfrost/encoder/pan_attributes.c b/src/panfrost/encoder/pan_attributes.c index d4c8ab6e8ad..d0d79486185 100644 --- a/src/panfrost/encoder/pan_attributes.c +++ b/src/panfrost/encoder/pan_attributes.c @@ -64,7 +64,7 @@ panfrost_large_padded_vertex_count(uint32_t vertex_count) switch (middle_two) { case 0b00: - if (nibble & 1) + if (!(nibble & 1)) return (1 << n) * 9; else return (1 << (n + 1)) * 5;