pan/mdg: Use shifts instead of division for RA sizes
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 20 May 2020 20:14:17 +0000 (16:14 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 21 May 2020 17:49:14 +0000 (17:49 +0000)
commit28201af08038343e428036d5b4676d5eb74b0199
treeafb9f9ac8fb3812b2f537e66749ff1d320c976d5
parent3d435b334b4e22a89104728f0c32d8b2864b4903
pan/mdg: Use shifts instead of division for RA sizes

We're only dealing with powers-of-two, so this eliminates potential
issues with divisions-by-zero that are otherwise hacked around. Probably
faster too.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
src/panfrost/midgard/midgard_ra.c