diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-07 14:32:53 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-07 17:23:23 -0700 |
commit | fbc7c0b8f2e161bce1c048c63d2d5cfcdeb096f1 (patch) | |
tree | 844b220fd9ba21041473312f5d1f847221ea41f2 /glsl_types.cpp | |
parent | 6173312d84daabaf6dbe8fa15558cba4c9cb9f5e (diff) |
Make function bodies rely on the parameter variable declarations.
Previously, generating inlined function bodies was going to be
difficult, as there was no mapping between the body's declaration of
variables where parameter values were supposed to live and the
parameter variables that a caller would use in paramater setup.
Presumably this also have been a problem for actual codegen.
Diffstat (limited to 'glsl_types.cpp')
-rw-r--r-- | glsl_types.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/glsl_types.cpp b/glsl_types.cpp index b7abdaef2c..c8d18b9ee7 100644 --- a/glsl_types.cpp +++ b/glsl_types.cpp @@ -204,11 +204,6 @@ generate_constructor_intro(const glsl_type *type, unsigned parameter_count, var->mode = ir_var_in; signature->parameters.push_tail(var); - var = new ir_variable(parameter_type, names[i]); - - var->mode = ir_var_in; - signature->body.push_tail(var); - declarations[i] = var; } |