panfrost: Fix shared memory size computation
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 13 Aug 2020 22:11:12 +0000 (18:11 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 19 Aug 2020 12:08:51 +0000 (12:08 +0000)
commit415eb43fd5f93278061a07ea1cee586460183a6d
tree81f61a20b1c1bb627f48d5682352be73ba552ab1
parent39bf1fb3221c0ab79e4609ca3588e2eeb9e3e2da
panfrost: Fix shared memory size computation

Based on core count. Also, avoid some of the more complex programming
and stick to powers-of-two for now.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6321>
src/gallium/drivers/panfrost/pan_cmdstream.c