nir: Use pointers for nir_src_copy and nir_dest_copy
[mesa.git] / src / glsl / nir / nir_lower_samplers.cpp
index 99f31fc028197176eef96cd6d09bcd86549f7022..dca086d709e8286fc88a7254ab79832e68fbd628 100644 (file)
@@ -102,7 +102,7 @@ lower_sampler(nir_tex_instr *instr, struct gl_shader_program *shader_program,
 
             nir_instr_rewrite_src(&instr->instr,
                                   &instr->src[instr->num_srcs - 1].src,
-                                  nir_src_copy(deref_array->indirect, mem_ctx));
+                                  deref_array->indirect);
 
             instr->sampler_array_size = glsl_get_length(deref->type);