mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
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:
parent
820e3a9403
commit
8aeeaa4d85
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue