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: 487ac6dbd6 ("zink: implement cross-program pipeline library sharing")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21285>
This commit is contained in:
SoroushIMG 2023-02-12 17:13:48 +00:00 committed by Marge Bot
parent b3ed037ca8
commit da5137ef61

View file

@ -1052,7 +1052,8 @@ zink_create_gfx_program(struct zink_context *ctx,
}
}
prog->libs = find_or_create_lib_cache(screen, prog);
if (screen->optimal_keys)
prog->libs = find_or_create_lib_cache(screen, prog);
struct mesa_sha1 sctx;
_mesa_sha1_init(&sctx);