summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-11-11 12:14:02 -0800
committerKenneth Graunke <kenneth@whitecape.org>2010-11-30 13:48:28 -0800
commitff994eeff8fa9f8f889878d6b48015ca7683e22b (patch)
tree09865ef7db1a5152ec172d88fe07623e4b315869
parentf5692f452f7ae77d1e710041ffebb468cc5ba87b (diff)
glsl: Remove anti-built-in hacks from the print visitor.
Now that we only import built-in signatures that are actually used, printing them is reasonable.
-rw-r--r--src/glsl/ir_print_visitor.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visitor.cpp
index e5067bfdad..55188ee452 100644
--- a/src/glsl/ir_print_visitor.cpp
+++ b/src/glsl/ir_print_visitor.cpp
@@ -153,17 +153,10 @@ void ir_print_visitor::visit(ir_function_signature *ir)
void ir_print_visitor::visit(ir_function *ir)
{
- if (!ir->has_user_signature())
- return;
-
printf("(function %s\n", ir->name);
indentation++;
foreach_iter(exec_list_iterator, iter, *ir) {
ir_function_signature *const sig = (ir_function_signature *) iter.get();
-
- if (sig->is_builtin)
- continue;
-
indent();
sig->accept(this);
printf("\n");