summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2019-04-26 17:08:25 -0700
committerFrancisco Jerez <[email protected]>2019-10-11 12:24:16 -0700
commitfd7e21dd909c218dc161d379b693f9487eafb48f (patch)
tree99a0b9577c1547bc18dfa8d67c614b286cbc8de8 /src
parent606d823b42e26a0a6ca66747eeabe1ff56d9b95b (diff)
intel/disasm/gen12: Disassemble Gen12 SYNC instruction.
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/compiler/brw_disasm.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_disasm.c b/src/intel/compiler/brw_disasm.c
index 2e18787d14c..8d35e87cc98 100644
--- a/src/intel/compiler/brw_disasm.c
+++ b/src/intel/compiler/brw_disasm.c
@@ -497,6 +497,14 @@ static const char *const math_function[16] = {
[GEN8_MATH_FUNCTION_RSQRTM] = "rsqrtm",
};
+static const char *const sync_function[16] = {
+ [TGL_SYNC_NOP] = "nop",
+ [TGL_SYNC_ALLRD] = "allrd",
+ [TGL_SYNC_ALLWR] = "allwr",
+ [TGL_SYNC_BAR] = "bar",
+ [TGL_SYNC_HOST] = "host",
+};
+
static const char *const math_saturate[2] = {
[0] = "",
[1] = "sat"
@@ -1651,6 +1659,12 @@ brw_disassemble_inst(FILE *file, const struct gen_device_info *devinfo,
string(file, " ");
err |= control(file, "function", math_function,
brw_inst_math_function(devinfo, inst), NULL);
+
+ } else if (opcode == BRW_OPCODE_SYNC) {
+ string(file, " ");
+ err |= control(file, "function", sync_function,
+ brw_inst_cond_modifier(devinfo, inst), NULL);
+
} else if (!is_send(opcode)) {
err |= control(file, "conditional modifier", conditional_modifier,
brw_inst_cond_modifier(devinfo, inst), NULL);