brw: Use BAD_FILE instead of ARF null for second send payload

A number of places emit monolithic sends, where the second payload is
empty.  Some places were using a BAD_FILE register, while others were
specifying the hardware ARF null register.  Switch to BAD_FILE for
consistency - this is usually what we do for "source isn't present".

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34040>
This commit is contained in:
Kenneth Graunke 2025-01-16 02:58:01 -08:00 committed by Marge Bot
parent 9366968b40
commit 90dbbc69bb

View file

@ -70,7 +70,7 @@ lower_urb_read_logical_send(const brw_builder &bld, brw_inst *inst)
inst->src[0] = brw_imm_ud(0); /* desc */
inst->src[1] = brw_imm_ud(0); /* ex_desc */
inst->src[2] = payload;
inst->src[3] = brw_null_reg();
inst->src[3] = brw_reg();
}
static void
@ -129,7 +129,7 @@ lower_urb_read_logical_send_xe2(const brw_builder &bld, brw_inst *inst)
inst->src[1] = brw_imm_ud(0);
inst->src[2] = payload;
inst->src[3] = brw_null_reg();
inst->src[3] = brw_reg();
}
static void
@ -186,7 +186,7 @@ lower_urb_write_logical_send(const brw_builder &bld, brw_inst *inst)
inst->src[0] = brw_imm_ud(0); /* desc */
inst->src[1] = brw_imm_ud(0); /* ex_desc */
inst->src[2] = payload;
inst->src[3] = brw_null_reg();
inst->src[3] = brw_reg();
}
static void