jay: marginally improve send splitting heuristic

Instrs: 2810815 -> 2809726 (-0.04%); split: -0.07%, +0.04%
CodeSize: 45101440 -> 45085472 (-0.04%); split: -0.07%, +0.04%

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40960>
This commit is contained in:
Alyssa Rosenzweig 2026-04-13 15:05:54 -04:00 committed by Marge Bot
parent 820e3a9403
commit 8aeeaa4d85

View file

@ -527,7 +527,7 @@ _jay_SEND(jay_builder *b, const struct jayb_send_params p)
* TODO: Come up with a better heuristic.
*/
assert(info->type_0 == info->type_1);
unsigned split = !p.check_tdr ? DIV_ROUND_UP(p.nr_srcs, 2) : p.nr_srcs;
unsigned split = !p.check_tdr ? (p.nr_srcs / 2) : p.nr_srcs;
I->src[2] = jay_collect_vectors(b, &p.srcs[0], split);
I->src[3] = jay_collect_vectors(b, &p.srcs[split], p.nr_srcs - split);
}