panfrost/midgard: Fix redunant mask redundancy

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-06-10 13:19:15 -07:00
parent 3dee556c4e
commit 4d8157f12d

View file

@ -451,9 +451,14 @@ print_mask(uint8_t mask, unsigned bits, midgard_dest_override override)
printf(" /* %X */", mask);
}
/* Prints the 4-bit masks found in texture and load/store ops, as opposed to
* the 8-bit masks found in (vector) ALU ops */
static void
print_mask_4(unsigned mask)
{
if (mask == 0xF) return;
printf(".");
for (unsigned i = 0; i < 4; ++i) {