glsl2: Make the clone() method take a talloc context.
authorEric Anholt <eric@anholt.net>
Wed, 4 Aug 2010 19:34:56 +0000 (12:34 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 4 Aug 2010 19:42:47 +0000 (12:42 -0700)
commit8273bd46877e2ea2b8a02b87a11c68102d07e1f2
tree3182808d4b54aa9c094a5e41bcda1405244b8e0b
parent84ee01f40acf88185484df386b7715034e7685c9
glsl2: Make the clone() method take a talloc context.

In most cases, we needed to be reparenting the cloned IR to a
different context (for example, to the linked shader instead of the
unlinked shader), or optimization before the reparent would cause
memory usage of the original object to grow and grow.
src/glsl/ast_to_hir.cpp
src/glsl/ir.h
src/glsl/ir_clone.cpp
src/glsl/ir_constant_expression.cpp
src/glsl/ir_function_inlining.cpp
src/glsl/ir_import_prototypes.cpp
src/glsl/ir_vec_index_to_cond_assign.cpp
src/glsl/link_functions.cpp
src/glsl/linker.cpp