From cb5b9ad7b439eddaedc54147f41727a661d11b21 Mon Sep 17 00:00:00 2001 From: Aras Pranckevicius Date: Wed, 4 Aug 2010 16:03:45 +0200 Subject: [PATCH] import_prototypes: do not put all cloned params into global builtin pool fixes performance problem when many shaders are parsed --- src/glsl/ir_import_prototypes.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/ir_import_prototypes.cpp b/src/glsl/ir_import_prototypes.cpp index 5c5dc00ad71..73200928f34 100644 --- a/src/glsl/ir_import_prototypes.cpp +++ b/src/glsl/ir_import_prototypes.cpp @@ -96,6 +96,7 @@ class import_prototype_visitor : public ir_hierarchical_visitor { assert(const_cast(param)->as_variable() != NULL); ir_variable *const param_copy = param->clone(NULL); + talloc_steal(copy, param_copy); copy->parameters.push_tail(param_copy); }