brw: Let the builder fill the sources of brw_inst

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36730>
This commit is contained in:
Caio Oliveira
2025-08-09 23:14:02 -07:00
committed by Marge Bot
parent 506fce20f0
commit 3ef86a8d00
3 changed files with 13 additions and 10 deletions
+1 -4
View File
@@ -29,16 +29,13 @@ brw_alloc_inst(brw_shader &s, unsigned num_srcs)
brw_inst *
brw_new_inst(brw_shader &s, enum opcode opcode, unsigned exec_size,
const brw_reg &dst, const brw_reg srcs[], unsigned num_srcs)
const brw_reg &dst, unsigned num_srcs)
{
assert(exec_size != 0);
assert(dst.file != IMM && dst.file != UNIFORM);
brw_inst *inst = brw_alloc_inst(s, num_srcs);
for (unsigned i = 0; i < num_srcs; i++)
inst->src[i] = srcs[i];
inst->opcode = opcode;
inst->dst = dst;
inst->exec_size = exec_size;