r300: Added the Math Engine opcode macro.
authorOliver McFadden <z3ro.geek@gmail.com>
Mon, 25 Feb 2008 12:39:36 +0000 (12:39 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Sat, 1 Mar 2008 06:33:06 +0000 (06:33 +0000)
src/mesa/drivers/dri/r300/r300_vertprog.h

index ca76f3f..ff44066 100644 (file)
         | ((out_reg_fields) << 20)     \
        | ( (class) << 8 ) )
 
+#define PVS_DST_MATH_INST      (1 << 6)
+
+#define PVS_MATH_OPCODE(op, out_reg_index, out_reg_fields, class) \
+   ((op)  \
+    | PVS_DST_MATH_INST \
+       | ((out_reg_index) << R300_VPI_OUT_REG_INDEX_SHIFT)     \
+        | ((out_reg_fields) << 20)     \
+       | ( (class) << 8 ) )
+
 /* according to Nikolai, the subsequent 3 DWORDs are sources, use same define for each */
 
 #define VSF_IN_CLASS_TMP       0