summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-07-06 16:01:06 -0700
committerIan Romanick <[email protected]>2010-07-12 15:19:29 -0700
commitf3235eb37f264244f4ea432700be7dd6b2930d6c (patch)
treead9c59948ca6ca745cb4975ca0c57b8fb7aaaf38 /src/glsl/ir.h
parent792e01c1e259077eb339af3ce61905fd227ae4bd (diff)
glsl2: Add utility function clone_ir_list
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index 89922c6bbcd..18294ebc314 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -1236,6 +1236,15 @@ visit_exec_list(exec_list *list, ir_visitor *visitor);
void validate_ir_tree(exec_list *instructions);
+/**
+ * Make a clone of each IR instruction in a list
+ *
+ * \param in List of IR instructions that are to be cloned
+ * \param out List to hold the cloned instructions
+ */
+void
+clone_ir_list(exec_list *out, const exec_list *in);
+
extern void
_mesa_glsl_initialize_variables(exec_list *instructions,
struct _mesa_glsl_parse_state *state);