panfrost: Cleanup shader upload code

Graphics / Mesa 3D Graphics Library / Mesa - Alyssa Rosenzweig [collabora.com] - 15 July 2019 15:03 EDT

The old algorithm is still used (and the same issue -- namely, leaking all shaders -- applies) but we're way more concise about it since we're
*only* using the routine for shaders nowadays; everything else is a BO-proper or transient.

318d641cd9f panfrost: Cleanup shader upload code
src/gallium/drivers/panfrost/pan_allocate.c | 76 ++++--------------------
src/gallium/drivers/panfrost/pan_allocate.h | 5 +-
src/gallium/drivers/panfrost/pan_assemble.c | 2 +-
src/gallium/drivers/panfrost/pan_blend_shaders.c | 2 +-
4 files changed, 14 insertions(+), 71 deletions(-)

Upstream: cgit.freedesktop.org


  • Share