From 6f275a863dd5a4babc9ee9de792c401c0eb7cb0d Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Mon, 26 Aug 2019 00:12:26 -0700 Subject: [PATCH] intel/fs: Define is_send() convenience IR helper. Reviewed-by: Caio Marcelo de Oliveira Filho Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_ir_fs.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_ir_fs.h b/src/intel/compiler/brw_ir_fs.h index 5dd03127c08..831d99607d6 100644 --- a/src/intel/compiler/brw_ir_fs.h +++ b/src/intel/compiler/brw_ir_fs.h @@ -515,6 +515,12 @@ get_exec_type_size(const fs_inst *inst) return type_sz(get_exec_type(inst)); } +static inline bool +is_send(const fs_inst *inst) +{ + return inst->mlen || inst->is_send_from_grf(); +} + /** * Return whether the instruction isn't an ALU instruction and cannot be * assumed to complete in-order. @@ -522,7 +528,7 @@ get_exec_type_size(const fs_inst *inst) static inline bool is_unordered(const fs_inst *inst) { - return inst->mlen || inst->is_send_from_grf() || inst->is_math(); + return is_send(inst) || inst->is_math(); } /** -- 2.30.2