Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
return prog->nir;
nir_shader *nir = glsl_to_nir(shader_program, stage, options);
- nir_lower_deref_instrs(nir, (nir_lower_deref_flags)~0);
/* Set the next shader stage hint for VS and TES. */
if (!nir->info.separate_shader &&
nir_shader *nir = st_glsl_to_nir(st, prog, shader_program, shader->Stage);
+ nir_lower_deref_instrs(nir, (nir_lower_deref_flags)~0);
+
set_st_program(prog, shader_program, nir);
prog->nir = nir;
}