brw: If the instruction is already a SEND, no need to resize sources
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Kept an assert as a placeholder in case we had something odd going on
that this code was protecting.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36817>
This commit is contained in:
Caio Oliveira 2025-08-10 15:26:32 -07:00 committed by Marge Bot
parent cebac156c4
commit 148063670d

View file

@ -390,7 +390,8 @@ brw_opt_split_sends(brw_shader &s)
lp1->dst = retype(brw_allocate_vgrf_units(s, lp1->size_written / REG_SIZE), lp1->dst.type);
lp2->dst = retype(brw_allocate_vgrf_units(s, lp2->size_written / REG_SIZE), lp2->dst.type);
send->resize_sources(SEND_NUM_SRCS);
assert(send->sources == SEND_NUM_SRCS);
send->src[SEND_SRC_PAYLOAD1] = lp1->dst;
send->src[SEND_SRC_PAYLOAD2] = lp2->dst;
send->ex_mlen = lp2->size_written / REG_SIZE;