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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user