From e7d20bc86a1ee51d6aee24a8c8b68238dd9dbb5e Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 4 Aug 2025 13:50:42 -0700 Subject: [PATCH] brw: Drop inst->mlen check from is_send() We used to have inst->mlen set on various virtual opcodes, but these days the only instructions that should have inst->mlen set are SHADER_OPCODE_SEND and SHADER_OPCODE_SEND_GATHER, which are already covered in inst->is_send_from_grf(). So we don't need to check for mlen specifically. Reviewed-by: Lionel Landwerlin Reviewed-by: Caio Oliveira Part-of: --- src/intel/compiler/brw_inst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_inst.h b/src/intel/compiler/brw_inst.h index cd4aa169d07..7d60b614ef8 100644 --- a/src/intel/compiler/brw_inst.h +++ b/src/intel/compiler/brw_inst.h @@ -333,7 +333,7 @@ get_exec_type_size(const brw_inst *inst) static inline bool is_send(const brw_inst *inst) { - return inst->mlen || inst->is_send_from_grf(); + return inst->is_send_from_grf(); } /**