summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost/midgard/midgard_ops.h')
-rw-r--r--src/panfrost/midgard/midgard_ops.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_ops.h b/src/panfrost/midgard/midgard_ops.h
index 3e9fff44836..2befc374ee2 100644
--- a/src/panfrost/midgard/midgard_ops.h
+++ b/src/panfrost/midgard/midgard_ops.h
@@ -26,6 +26,8 @@
extern struct mir_op_props alu_opcode_props[256];
extern struct mir_ldst_op_props load_store_opcode_props[256];
+#define OP_IS_STORE(op) (load_store_opcode_props[op].props & LDST_STORE)
+
/* Is this opcode that of an integer (regardless of signedness)? Instruction
* names authoritatively determine types */