aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/R600/R600Defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/R600/R600Defines.h')
-rw-r--r--lib/Target/R600/R600Defines.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/R600/R600Defines.h b/lib/Target/R600/R600Defines.h
index 4041550f8a..36bfb18e67 100644
--- a/lib/Target/R600/R600Defines.h
+++ b/lib/Target/R600/R600Defines.h
@@ -54,6 +54,9 @@ namespace R600_InstFlag {
#define GET_REG_CHAN(reg) ((reg) >> HW_CHAN_SHIFT)
#define GET_REG_INDEX(reg) ((reg) & HW_REG_MASK)
+#define IS_VTX(desc) ((desc).TSFlags & R600_InstFlag::VTX_INST)
+#define IS_TEX(desc) ((desc).TSFlags & R600_InstFlag::TEX_INST)
+
namespace R600Operands {
enum Ops {
DST,