nir: Drop the unused instr arg for src/dest copy functions.

Now that we don't use ralloc, we don't need this arg to get at the right
ralloc ctx.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11776>
This commit is contained in:
Emma Anholt
2021-07-07 11:06:11 -07:00
committed by Marge Bot
parent 879a569884
commit aed4c0b5a9
33 changed files with 72 additions and 80 deletions

View File

@@ -1635,7 +1635,7 @@ nir_visitor::visit(ir_call *ir)
nir_ssa_def *val = evaluate_rvalue(param_rvalue);
nir_src src = nir_src_for_ssa(val);
nir_src_copy(&call->params[i], &src, call);
nir_src_copy(&call->params[i], &src);
} else if (sig_param->data.mode == ir_var_function_inout) {
unreachable("unimplemented: inout parameters");
}