[Mesa-dev] [PATCH 40/61] st/nir: Move lower_deref_instrs later
Jason Ekstrand
jason at jlekstrand.net
Fri Mar 23 21:42:46 UTC 2018
---
src/mesa/state_tracker/st_glsl_to_nir.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp
index 7d111d6..f62135a 100644
--- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
@@ -328,7 +328,6 @@ st_glsl_to_nir(struct st_context *st, struct gl_program *prog,
return prog->nir;
nir_shader *nir = glsl_to_nir(shader_program, stage, options);
- nir_lower_deref_instrs(nir, (nir_lower_deref_flags)~0);
nir_variable_mode mask =
(nir_variable_mode) (nir_var_shader_in | nir_var_shader_out);
@@ -527,6 +526,8 @@ st_nir_get_mesa_program(struct gl_context *ctx,
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;
}
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list