zink: stop leaking programs
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 5 Nov 2020 01:50:08 +0000 (20:50 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 15 Mar 2021 15:37:46 +0000 (15:37 +0000)
commitedcad555f822214739af81dc1b2044878af9bc09
treeb7e11e7c5e5702a230c1209feb501af01f9c1273
parent46b356ca2dccc8966ae35da022115803e832564d
zink: stop leaking programs

gfx and compute programs both end up with an extra ref from creation,
so they both need to lose a ref during creation after they get their
shader refs

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