ir_to_mesa: Remove pretense of support for function calls.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Apr 2012 20:29:37 +0000 (13:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Apr 2012 17:17:37 +0000 (10:17 -0700)
commit781e2d5cfae37c24180c0c622467f656582af9f5
tree1f0fea0d67db4727d8239bd238e706908406042c
parentf78f48b6d2c4034a62ab11a558c95901d2245c4a
ir_to_mesa: Remove pretense of support for function calls.

While ir_to_mesa contains code that attempts to support functions, I
honestly doubt it's been tested and have little confidence that it
works.

The comment in visit(ir_function *ir) doesn't inspire confidence:
/* Ignore function bodies other than main() -- we shouldn't see calls to
 * them since they should all be inlined before we get to ir_to_mesa.
 */

Furthermore, hardware drivers such as i915, i965, and (AFAICT) r200
don't support the BGNSUB/ENDSUB/CAL opcodes anyway.  Only swrast does.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/ir_to_mesa.cpp