glsl: fix lower jumps for nested non-void returns
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 7 Apr 2017 01:24:37 +0000 (11:24 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 8 Apr 2017 01:18:32 +0000 (11:18 +1000)
commitbfabef0e7104dc4043a74ef44e71ecc7636cfe12
tree80c1095eb57129ac87b098c87366654664fe1fe0
parent5dd490f134cff8a0b6da1417d146e92df1860b0f
glsl: fix lower jumps for nested non-void returns

Fixes the case were a loop contains a return and the loop is
nested inside an if.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
https://bugs.freedesktop.org/show_bug.cgi?id=100303
src/compiler/glsl/lower_jumps.cpp
src/compiler/glsl/tests/lower_jumps/create_test_cases.py