glsl2: Make sure functions end with a return before doing ir_if_return.
authorEric Anholt <eric@anholt.net>
Thu, 29 Jul 2010 20:29:17 +0000 (13:29 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 29 Jul 2010 22:19:44 +0000 (15:19 -0700)
commita62ef12ef242ecd48887df2aa2052d2ecb0979f7
tree7d01aa3d1d9137f591ee1a412fdfb2a5b4a9b266
parent18964618a14996fff7ab5a5db75c85cd64865ef4
glsl2: Make sure functions end with a return before doing ir_if_return.

This catches a few remaining functions that weren't getting inlined,
generally operating on global or out variables and using an early
return to skip work when possible.

Fixes for i965:
glsl1-function with early return (3)
src/glsl/ir_if_return.cpp