mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
st/mesa: use *prog at the end of st_link_nir
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
4e07869a06
commit
b596bb5b66
1 changed files with 4 additions and 4 deletions
|
|
@ -806,17 +806,17 @@ st_link_nir(struct gl_context *ctx,
|
|||
if (shader == NULL)
|
||||
continue;
|
||||
|
||||
st_glsl_to_nir_post_opts(st, shader->Program, shader_program);
|
||||
struct gl_program *prog = shader->Program;
|
||||
st_glsl_to_nir_post_opts(st, prog, shader_program);
|
||||
|
||||
assert(shader->Program);
|
||||
if (!ctx->Driver.ProgramStringNotify(ctx,
|
||||
_mesa_shader_stage_to_program(i),
|
||||
shader->Program)) {
|
||||
prog)) {
|
||||
_mesa_reference_program(ctx, &shader->Program, NULL);
|
||||
return false;
|
||||
}
|
||||
|
||||
nir_sweep(shader->Program->nir);
|
||||
nir_sweep(prog->nir);
|
||||
|
||||
/* The GLSL IR won't be needed anymore. */
|
||||
ralloc_free(shader->ir);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue