zink: destroy gfx program when a shader is freed
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 3 Jun 2020 15:08:34 +0000 (11:08 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sat, 18 Jul 2020 07:51:37 +0000 (07:51 +0000)
commit7116decfce3a6d6cff2dee3f18ec29796abfbcd5
treea645d8fe7a9e6a1b3136f8c5ce97d1aa35d90193
parent9e9c8e2f794458404441e4bdb51e7a43f6b848e8
zink: destroy gfx program when a shader is freed

there's no sense in having these objects sitting around when they can
never be used again

requires adding a zink_context* pointer to each program in order to prune
the hash table entry

Reviewed-by: Antonio Caggiano <antonio.caggiano@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5887>
src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_compiler.h
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_draw.c
src/gallium/drivers/zink/zink_program.c
src/gallium/drivers/zink/zink_program.h