glsl: Remove anti-built-in hacks from the print visitor.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 11 Nov 2010 20:14:02 +0000 (12:14 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 30 Nov 2010 21:48:28 +0000 (13:48 -0800)
Now that we only import built-in signatures that are actually used,
printing them is reasonable.

src/glsl/ir_print_visitor.cpp

index e5067bfdad03856ebfbc251cec5ee7b854ba8685..55188ee4527c8a62ebc45c8410a3012b84fc1652 100644 (file)
@@ -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");