ir_validate: Additional function related invariant checks
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 2 Jul 2010 20:30:23 +0000 (13:30 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Jul 2010 22:19:29 +0000 (15:19 -0700)
commitc67016de960c988c748ffdb11247072543a8f328
tree40c039fdc244d0567f777946a42c38128d3d6fa7
parentdf05ad4e1aa5512ce1dfd2e6661641e012c8b279
ir_validate: Additional function related invariant checks

Add two invariant checks related to functions and function signatures:

1. Ensure that function definitions (ir_function) are not nested.

2. Ensure that the ir_function pointed to by an ir_function_signature
is the one that contains it in its signatures list.
src/glsl/ir_validate.cpp