zink: refcount the shader cache
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 13 Jul 2020 18:34:02 +0000 (14:34 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 13 Nov 2020 14:40:33 +0000 (14:40 +0000)
commitb9fdc21bba0724271520462f3f04ba72ae106a26
tree69c2fcb2e7a378c6d9e10eaa56130d86ca008884
parent2be2a500a396fe1dc0e121816e4056874cdd43fc
zink: refcount the shader cache

we want to be able to reuse this between programs with matching slot
maps, and refcounting allows that without having to copy the table

also add some docs about all the different shader caching structs

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7193>
src/gallium/drivers/zink/zink_program.c
src/gallium/drivers/zink/zink_program.h