glsl: Lower unconditional return statements.
authorPaul Berry <stereotype441@gmail.com>
Fri, 1 Jul 2011 19:14:07 +0000 (12:14 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 8 Jul 2011 16:59:30 +0000 (09:59 -0700)
commitafc9a50fba39df520046019c6993d7b7559329ea
treed9c3523e5129568cffc8f03d004d71be9cdbdd30
parentdbaa2e627effbe1361e1a69c23cf247cf86f2709
glsl: Lower unconditional return statements.

Previously, lower_jumps.cpp only lowered return statements that
appeared inside of an if statement.

Without this patch, lower_jumps.cpp might not lower certain return
statements, causing some back-ends to fail (as in bug #36669).

Fixes unit test test_lower_returns_1.
src/glsl/lower_jumps.cpp