aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_eu_emit.c
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2019-09-03 17:51:17 -0700
committerFrancisco Jerez <[email protected]>2019-10-11 12:24:16 -0700
commitc22db5e1885ffbc4eb658bb27d3638749d425b03 (patch)
treeb91157289a98a251839d05489bc6983164906a4f /src/intel/compiler/brw_eu_emit.c
parent0e57dbc55cd7f42a2298dbaa4e18fe97a85fd0d2 (diff)
intel/fs/gen12: Add codegen support for the SYNC instruction.
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_eu_emit.c')
-rw-r--r--src/intel/compiler/brw_eu_emit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c
index 7bbc5d30b98..e5d212bdba4 100644
--- a/src/intel/compiler/brw_eu_emit.c
+++ b/src/intel/compiler/brw_eu_emit.c
@@ -1271,9 +1271,11 @@ void brw_NOP(struct brw_codegen *p)
brw_inst_set_opcode(p->devinfo, insn, BRW_OPCODE_NOP);
}
-
-
-
+void brw_SYNC(struct brw_codegen *p, enum tgl_sync_function func)
+{
+ brw_inst *insn = next_insn(p, BRW_OPCODE_SYNC);
+ brw_inst_set_cond_modifier(p->devinfo, insn, func);
+}
/***********************************************************************
* Comparisons, if/else/endif