diff options
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r-- | src/panfrost/midgard/mir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panfrost/midgard/mir.c b/src/panfrost/midgard/mir.c index 609cd5c1db4..7c7149bd547 100644 --- a/src/panfrost/midgard/mir.c +++ b/src/panfrost/midgard/mir.c @@ -376,10 +376,10 @@ mir_round_bytemask_down(uint16_t mask, midgard_reg_mode mode) for (unsigned c = 0; c < channels; ++c) { /* Get bytes in component */ - unsigned submask = (mask >> c * channels) & maxmask; + unsigned submask = (mask >> (c * bytes)) & maxmask; if (submask != maxmask) - mask &= ~(maxmask << (c * channels)); + mask &= ~(maxmask << (c * bytes)); } return mask; |