glsl: Move is_builtin flag back to ir_function_signature.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 5 Sep 2010 08:48:11 +0000 (01:48 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Sep 2010 00:30:38 +0000 (17:30 -0700)
commitf412fac5b46eb274cbed8e62234d5dbfd859f1fe
tree89bbe21c6ba90bdfc59e850ebda738e329fc1fff
parentc98deb18d5836f75cf62562f9304e4d90e0ea920
glsl: Move is_builtin flag back to ir_function_signature.

This effectively reverts b6f15869b324ae64a00d0fe46fa3c8c62c1edb6c.

In desktop GLSL, defining a function with the same name as a built-in
hides that built-in function completely, so there would never be
built-in and user function signatures in the same ir_function.

However, in GLSL ES, overloading built-ins is allowed, and does not
hide the built-in signatures - so we're back to needing this.
src/glsl/ast_to_hir.cpp
src/glsl/ir.cpp
src/glsl/ir.h
src/glsl/ir_clone.cpp
src/glsl/ir_constant_expression.cpp
src/glsl/ir_import_prototypes.cpp
src/glsl/ir_print_visitor.cpp
src/glsl/ir_reader.cpp
src/glsl/linker.cpp