mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
st/mesa: release GLSL IR in LinkShader after it's not needed
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
906ecab450
commit
a8aa73f768
1 changed files with 4 additions and 0 deletions
|
|
@ -6149,6 +6149,10 @@ get_mesa_program(struct gl_context *ctx,
|
|||
prog->OutputsWritten, 0ULL, prog->PatchOutputsWritten);
|
||||
count_resources(v, prog);
|
||||
|
||||
/* The GLSL IR won't be needed anymore. */
|
||||
ralloc_free(shader->ir);
|
||||
shader->ir = NULL;
|
||||
|
||||
/* This must be done before the uniform storage is associated. */
|
||||
if (shader->Type == GL_FRAGMENT_SHADER &&
|
||||
(prog->InputsRead & VARYING_BIT_POS ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue