summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_eu.h
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2018-06-02 13:48:42 -0700
committerFrancisco Jerez <[email protected]>2018-07-09 23:46:57 -0700
commitd0f589a55b51242f80c299187511db7f1b041712 (patch)
tree6a6be9c20ffb99897b13b24e0d4706d15403729a /src/intel/compiler/brw_eu.h
parentf55884cad38516c2f6c62065c614a764c0a6f15e (diff)
intel/eu: Define helper to specify the descriptor immediates of a SEND instruction.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_eu.h')
-rw-r--r--src/intel/compiler/brw_eu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_eu.h b/src/intel/compiler/brw_eu.h
index aad2434bcf4..30c987942c4 100644
--- a/src/intel/compiler/brw_eu.h
+++ b/src/intel/compiler/brw_eu.h
@@ -600,6 +600,15 @@ void brw_math_invert( struct brw_codegen *p,
void brw_set_src1(struct brw_codegen *p, brw_inst *insn, struct brw_reg reg);
+void brw_set_desc_ex(struct brw_codegen *p, brw_inst *insn,
+ unsigned desc, unsigned ex_desc);
+
+static inline void
+brw_set_desc(struct brw_codegen *p, brw_inst *insn, unsigned desc)
+{
+ brw_set_desc_ex(p, insn, desc, 0);
+}
+
void brw_set_uip_jip(struct brw_codegen *p, int start_offset);
enum brw_conditional_mod brw_negate_cmod(uint32_t cmod);