anv,i965,radv,st,ir3: Call nir_lower_deref_instrs
[mesa.git] / src / gallium / drivers / freedreno / ir3 / ir3_nir.c
index 9ada3889eb94e03cc56d5648971b0f8bb613efa6..990be925833c88a6b6052d4622d14ee47942e96a 100644 (file)
@@ -57,7 +57,9 @@ static const nir_shader_compiler_options options = {
 struct nir_shader *
 ir3_tgsi_to_nir(const struct tgsi_token *tokens)
 {
-       return tgsi_to_nir(tokens, &options);
+       struct nir_shader *shader = tgsi_to_nir(tokens, &options);
+       NIR_PASS_V(shader, nir_lower_deref_instrs, ~0);
+       return shader;
 }
 
 const nir_shader_compiler_options *