zink: wait on program cache fences before destroying programs
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 2 Mar 2022 13:48:52 +0000 (08:48 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 7 Mar 2022 04:07:58 +0000 (04:07 +0000)
commitc5f585f45afdde8c453c57dad744fd51caf6a699
tree9fcdb9e49ef3b29c8c01bf712a8288882b6d05b1
parent382798ddbde040b4900f47cbc2509a6338add011
zink: wait on program cache fences before destroying programs

if these still have outstanding cache jobs, deleting the object now
will cause a crash

maybe fixes some cts flakiness?

cc: mesa-stable

Acked-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15226>
src/gallium/drivers/zink/zink_program.c