From 74212c2414ce04c1331f6c79d74bcc75ea5d4726 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 19 Mar 2018 10:50:40 -0700 Subject: anv,i965,radv,st,ir3: Call nir_lower_deref_instrs This inserts a call to nir_lower_deref_instrs at every call site of glsl_to_nir, spirv_to_nir, and prog_to_nir. Reviewed-by: Caio Marcelo de Oliveira Filho Acked-by: Rob Clark Acked-by: Bas Nieuwenhuizen Acked-by: Dave Airlie Reviewed-by: Kenneth Graunke --- src/gallium/drivers/v3d/v3d_program.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/drivers/v3d') diff --git a/src/gallium/drivers/v3d/v3d_program.c b/src/gallium/drivers/v3d/v3d_program.c index ef7dd375bf7..55c6dc071a2 100644 --- a/src/gallium/drivers/v3d/v3d_program.c +++ b/src/gallium/drivers/v3d/v3d_program.c @@ -209,6 +209,7 @@ v3d_shader_state_create(struct pipe_context *pctx, fprintf(stderr, "\n"); } s = tgsi_to_nir(cso->tokens, &v3d_nir_options); + NIR_PASS_V(s, nir_lower_deref_instrs, ~0); so->was_tgsi = true; } -- cgit v1.2.3