From: Boris Brezillon Date: Mon, 12 Oct 2020 09:07:45 +0000 (+0200) Subject: pan/bi: Get rid of the regs argument in bi_assign_fau_idx() X-Git-Tag: upstream/21.0.0~3693 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6dd2a76126f6dfa43930d9d95b7d61662a4a7ec5;p=platform%2Fupstream%2Fmesa.git pan/bi: Get rid of the regs argument in bi_assign_fau_idx() Regs are already part of the bundle struct, let's just pass a pointer to this bundle object instead of passing both the bundle and regs. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index 195cc72..1d33bed 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -196,13 +196,12 @@ bi_assign_fau_idx_single(bi_registers *regs, static void bi_assign_fau_idx(bi_clause *clause, - bi_registers *regs, - bi_bundle bundle) + bi_bundle *bundle) { bool assigned = - bi_assign_fau_idx_single(regs, clause, bundle.fma, false, true); + bi_assign_fau_idx_single(&bundle->regs, clause, bundle->fma, false, true); - bi_assign_fau_idx_single(regs, clause, bundle.add, assigned, false); + bi_assign_fau_idx_single(&bundle->regs, clause, bundle->add, assigned, false); } /* Assigns a slot for reading, before anything is written */ @@ -894,7 +893,7 @@ static struct bi_packed_bundle bi_pack_bundle(bi_clause *clause, bi_bundle bundle, bi_bundle prev, bool first_bundle, gl_shader_stage stage) { bi_assign_slots(&bundle, &prev); - bi_assign_fau_idx(clause, &bundle.regs, bundle); + bi_assign_fau_idx(clause, &bundle); bundle.regs.first_instruction = first_bundle; bi_flip_slots(&bundle.regs);