mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 17:30:20 +01:00
brw: If the instruction is already a SEND, no need to resize sources
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:
parent
cebac156c4
commit
148063670d
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue