diff options
author | Oliver McFadden <[email protected]> | 2008-02-25 12:39:36 +0000 |
---|---|---|
committer | Oliver McFadden <[email protected]> | 2008-03-01 06:33:06 +0000 |
commit | 0ced26099d3ff2e82ffd5fe7915504b13341c812 (patch) | |
tree | c90c110c36961daf4681c02971dfcbb91c45ca9b /src/mesa | |
parent | 7c4add02f80c7f16241ddbae18117d7cb264079d (diff) |
r300: Added the Math Engine opcode macro.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_vertprog.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_vertprog.h b/src/mesa/drivers/dri/r300/r300_vertprog.h index ca76f3f69aa..ff44066d2b9 100644 --- a/src/mesa/drivers/dri/r300/r300_vertprog.h +++ b/src/mesa/drivers/dri/r300/r300_vertprog.h @@ -23,6 +23,15 @@ | ((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 |