panfrost: Fix attribute buffer underallocation
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 17 Aug 2020 18:37:44 +0000 (14:37 -0400)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 20 Aug 2020 16:15:02 +0000 (18:15 +0200)
commit3df90c7c27e1149d250bb74923ee63af47b0e1f6
treeeb35942c271b8e47a3374b1075662aed0f4f7b30
parent373a204bdd7b6bd0d3bd1b052ef67824d1b81fa7
panfrost: Fix attribute buffer underallocation

Breaks on the pathological where everything is NPOT.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fixes: e646c861fc6 ("panfrost: Use packs for vertex attribute buffers")
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6373>
src/gallium/drivers/panfrost/pan_cmdstream.c