zink: stop creating pipeline library cache for non-optimal_key drivers
authorSoroushIMG <soroush.kashani@imgtec.com>
Sun, 12 Feb 2023 17:13:48 +0000 (17:13 +0000)
committerMarge Bot <emma+marge@anholt.net>
Mon, 13 Feb 2023 19:00:06 +0000 (19:00 +0000)
commitda5137ef6184b70c247c2c6fd438b5a3a3166744
tree8217adb53dbb17593589a6798965b8bc7d968e7a
parentb3ed037ca8d8cb28deb9a160411257d54c57f8e1
zink: stop creating pipeline library cache for non-optimal_key drivers

currently the nin-optimal codepath doesn't use this at all and this just
leaks memory due to not handling non-tcs generated shaders.

Fixes: 487ac6dbd60 ("zink: implement cross-program pipeline library sharing")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21285>
src/gallium/drivers/zink/zink_program.c