Re: [Mesa-dev] [PATCH] glsl: fix lower jumps for returns when loop is inside an if

2017-03-27 Thread Roland Scheidegger
Am 26.03.2017 um 14:34 schrieb Timothy Arceri: > Previously we would just escape the loop and move everything > following the loop inside the if to the else branch of a new if > with a return flag conditional. However everything outside the > if the loop was nested in would still get executed. >

[Mesa-dev] [PATCH] glsl: fix lower jumps for returns when loop is inside an if

2017-03-26 Thread Timothy Arceri
Previously we would just escape the loop and move everything following the loop inside the if to the else branch of a new if with a return flag conditional. However everything outside the if the loop was nested in would still get executed. Adding a new return to the then branch of the new if