From: Francisco Jerez Date: Mon, 26 Aug 2019 01:12:35 +0000 (-0700) Subject: intel/eu/gen12: Use SEND instruction for split sends. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a5fad0d926a18ef998dc866dff9e466778c899c;p=mesa.git intel/eu/gen12: Use SEND instruction for split sends. The new SEND instruction behaves like the former SENDS instruction. The original single-payload SEND instruction is gone. Reviewed-by: Kenneth Graunke --- diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index 6a576edae1f..42dc2617fb0 100644 --- a/src/intel/compiler/brw_eu_emit.c +++ b/src/intel/compiler/brw_eu_emit.c @@ -2688,7 +2688,7 @@ brw_send_indirect_split_message(struct brw_codegen *p, ex_desc = addr; } - send = next_insn(p, BRW_OPCODE_SENDS); + send = next_insn(p, devinfo->gen >= 12 ? BRW_OPCODE_SEND : BRW_OPCODE_SENDS); brw_set_dest(p, send, dst); brw_set_src0(p, send, retype(payload0, BRW_REGISTER_TYPE_UD)); brw_set_src1(p, send, retype(payload1, BRW_REGISTER_TYPE_UD)); diff --git a/src/intel/compiler/brw_fs_generator.cpp b/src/intel/compiler/brw_fs_generator.cpp index f05468e7355..4b7b3183ef7 100644 --- a/src/intel/compiler/brw_fs_generator.cpp +++ b/src/intel/compiler/brw_fs_generator.cpp @@ -285,7 +285,8 @@ fs_generator::generate_send(fs_inst *inst, desc, desc_imm, ex_desc, ex_desc_imm, inst->eot); if (inst->check_tdr) - brw_inst_set_opcode(p->devinfo, brw_last_inst, BRW_OPCODE_SENDSC); + brw_inst_set_opcode(p->devinfo, brw_last_inst, + devinfo->gen >= 12 ? BRW_OPCODE_SENDC : BRW_OPCODE_SENDSC); } else { brw_send_indirect_message(p, inst->sfid, dst, payload, desc, desc_imm, inst->eot);