From: Kenneth Graunke Date: Thu, 11 Nov 2010 20:14:02 +0000 (-0800) Subject: glsl: Remove anti-built-in hacks from the print visitor. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff994eeff8fa9f8f889878d6b48015ca7683e22b;p=mesa.git 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. --- diff --git a/src/glsl/ir_print_visitor.cpp b/src/glsl/ir_print_visitor.cpp index e5067bfdad0..55188ee4527 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");