st/glsl_to_nir: fix the case where NIR clone testing is enabled
In that case, prog->nir must be assigned at the end. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
01f1598a40
commit
06d038c4bd
|
@ -236,7 +236,6 @@ st_glsl_to_nir(struct st_context *st, struct gl_program *prog,
|
|||
return prog->nir;
|
||||
|
||||
nir = glsl_to_nir(shader_program, stage, options);
|
||||
prog->nir = nir;
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_io_to_temporaries,
|
||||
nir_shader_get_entrypoint(nir),
|
||||
|
@ -281,6 +280,8 @@ st_glsl_to_nir(struct st_context *st, struct gl_program *prog,
|
|||
_mesa_log("\n\n");
|
||||
}
|
||||
|
||||
prog->nir = nir;
|
||||
|
||||
return nir;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue