projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5692f4
)
glsl: Remove anti-built-in hacks from the print visitor.
author
Kenneth Graunke
<kenneth@whitecape.org>
Thu, 11 Nov 2010 20:14:02 +0000
(12:14 -0800)
committer
Kenneth 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
patch
|
blob
|
history
diff --git
a/src/glsl/ir_print_visitor.cpp
b/src/glsl/ir_print_visitor.cpp
index e5067bfdad03856ebfbc251cec5ee7b854ba8685..55188ee4527c8a62ebc45c8410a3012b84fc1652 100644
(file)
--- 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");