glsl2: Make the dead code handler make its own talloc context.
authorEric Anholt <eric@anholt.net>
Tue, 27 Jul 2010 18:28:26 +0000 (11:28 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 27 Jul 2010 18:46:05 +0000 (11:46 -0700)
commit66d4c65ee2c311ea0c71c39a28456d0c11798d6b
tree1ac5615584028ada121a23c83101e6b45c28408e
parent8bbdf6e7cdfc3265439761a06eea79627f4ee2fa
glsl2: Make the dead code handler make its own talloc context.

This way, we don't need to pass in a parse state, and the context
doesn't grow with the number of passes through optimization.
src/glsl/ir_dead_code.cpp
src/glsl/ir_optimization.h
src/glsl/main.cpp
src/mesa/program/ir_to_mesa.cpp