aboutsummaryrefslogtreecommitdiffstats
path: root/ir_to_mesa.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-05-10 10:06:36 -0700
committerEric Anholt <[email protected]>2010-06-24 15:05:20 -0700
commitbdbd9f112e2832eeddce8fc4f70f11005bbe4027 (patch)
tree8e4110160392f1777ec414068a2b1f411f43cc1b /ir_to_mesa.h
parent4e5e0f018baedb2d0aa0e1f43efe339da16a09c6 (diff)
ir_to_mesa: Add support for variable indexing of temporary arrays.
Fixes loop-01.vert, loop-02.vert.
Diffstat (limited to 'ir_to_mesa.h')
-rw-r--r--ir_to_mesa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ir_to_mesa.h b/ir_to_mesa.h
index 43ddd5fe517..515feb19a38 100644
--- a/ir_to_mesa.h
+++ b/ir_to_mesa.h
@@ -40,6 +40,7 @@ typedef struct ir_to_mesa_src_reg {
int file; /**< PROGRAM_* from Mesa */
int index; /**< temporary index, VERT_ATTRIB_*, FRAG_ATTRIB_*, etc. */
int swizzle; /**< SWIZZLE_XYZWONEZERO swizzles from Mesa. */
+ bool reladdr; /**< Register index should be offset by address reg. */
} ir_to_mesa_src_reg;
typedef struct ir_to_mesa_dst_reg {
@@ -145,6 +146,9 @@ public:
exec_list instructions;
};
+extern ir_to_mesa_src_reg ir_to_mesa_undef;
+extern ir_to_mesa_dst_reg ir_to_mesa_undef_dst;
+
ir_to_mesa_instruction *
ir_to_mesa_emit_op1(struct mbtree *tree, enum prog_opcode op);