glsl: Don't inline function prototypes.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Nov 2010 08:09:43 +0000 (00:09 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Nov 2010 09:19:53 +0000 (01:19 -0800)
commite8a24c65bc06a2a098c05728df0da1e5ed61b1de
tree5e33de528419a03a98b5e017b957495b27e7373f
parent2cc79acc1ab5cdaadc427526a146c2c27ee0f906
glsl: Don't inline function prototypes.

Currently, the standalone compiler tries to do function inlining before
linking shaders (including linking against the built-in functions).
This resulted in the built-in function _prototypes_ being inlined rather
than the actual function definition.

This is only known to fix a bug in the standalone compiler; most
programs should be unaffected.  Still, it seems like a good idea.

NOTE: This is a candidate for the 7.9 branch.
src/glsl/ir_function_can_inline.cpp