From 148063670d9a9161b4e2850cb5e0d55240818f3f Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Sun, 10 Aug 2025 15:26:32 -0700 Subject: [PATCH] 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 Part-of: --- src/intel/compiler/brw_opt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_opt.cpp b/src/intel/compiler/brw_opt.cpp index b452292504c..1eb46ebc8f2 100644 --- a/src/intel/compiler/brw_opt.cpp +++ b/src/intel/compiler/brw_opt.cpp @@ -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;