panfrost: Allocate UBOs on the stack, not the heap
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 15 Jul 2019 18:30:35 +0000 (11:30 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 15 Jul 2019 23:12:55 +0000 (16:12 -0700)
commitfae790ecfcd0f73c6512e52a2e430ed1ce7f5b12
tree9b8bf7874d11ff3d902c949a5ae00103f6d0fcab
parent0ba508d7a3b6a006b5b8db1e865d33efc8d0abd5
panfrost: Allocate UBOs on the stack, not the heap

Saves a call to calloc (the maximum size is small and known at
compile-time) and fixes a leak.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_screen.c
src/gallium/drivers/panfrost/pan_screen.h