summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser.yy
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2011-07-01 18:26:05 -0700
committerPaul Berry <[email protected]>2011-07-08 09:59:30 -0700
commit03145ba655ad9173a74b853843eccaae78ff392f (patch)
tree1cd0a4e3b1c689fb554a1cfc535364a4c605ae30 /src/glsl/glsl_parser.yy
parentafc9a50fba39df520046019c6993d7b7559329ea (diff)
glsl: lower unconditional returns and continues in loops.
Previously, lower_jumps.cpp would only lower return and continue statements that appeared inside conditionals. This patch makes it lower unconditional returns and continue statements that occur inside a loop. Such unconditional flow control statements would be unlikely to be explicitly coded by a reasonable user, however they might arise as a result of other optimizations. Without this patch, lower_jumps.cpp might not lower certain return and continue statements, causing some backends to fail. Fixes unit tests test_lower_return_void_at_end_of_loop and test_remove_continue_at_end_of_loop.
Diffstat (limited to 'src/glsl/glsl_parser.yy')
0 files changed, 0 insertions, 0 deletions