util: Add a mapping from VkFormat to PIPE_FORMAT.
[mesa.git] / src / panfrost / midgard / midgard_ops.h
index 3e9fff44836f7c05218294ec4d5eaee1d5b0d6fb..2befc374ee2dccf1c40023f26dad96e126827f8e 100644 (file)
@@ -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 */