summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_ir_fs.h
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2018-12-29 04:00:13 -0800
committerFrancisco Jerez <[email protected]>2019-01-09 12:03:09 -0800
commitefa4e4bc5fc39cccc6d7103e9f15b795de3ee07c (patch)
tree2944f949882b65f91a6f98db5d9548e822427d58 /src/intel/compiler/brw_ir_fs.h
parentb94519971a2731143e801ec445d0f2c72e95d8d1 (diff)
intel/fs: Introduce regioning lowering pass.
This legalization pass is meant to handle situations where the source or destination regioning controls of an instruction are unsupported by the hardware and need to be lowered away into separate instructions. This should be more reliable and future-proof than the current approach of handling CHV/BXT restrictions manually all over the visitor. The same mechanism is leveraged to lower unsupported type conversions easily, which obsoletes the lower_conversions pass. v2: Give conditional modifiers the same treatment as predicates for SEL instructions in lower_dst_modifiers() (Iago). Special-case a couple of other instructions with inconsistent conditional mod semantics in lower_dst_modifiers() (Curro). Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_ir_fs.h')
-rw-r--r--src/intel/compiler/brw_ir_fs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_ir_fs.h b/src/intel/compiler/brw_ir_fs.h
index 5bb92e4cc86..3c23fb375e4 100644
--- a/src/intel/compiler/brw_ir_fs.h
+++ b/src/intel/compiler/brw_ir_fs.h
@@ -487,6 +487,16 @@ get_exec_type_size(const fs_inst *inst)
}
/**
+ * Return whether the instruction isn't an ALU instruction and cannot be
+ * assumed to complete in-order.
+ */
+static inline bool
+is_unordered(const fs_inst *inst)
+{
+ return inst->mlen || inst->is_send_from_grf() || inst->is_math();
+}
+
+/**
* Return whether the following regioning restriction applies to the specified
* instruction. From the Cherryview PRM Vol 7. "Register Region
* Restrictions":