mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
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:
parent
b3ed037ca8
commit
da5137ef61
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue