diff options
author | Timothy Arceri <[email protected]> | 2017-03-26 23:34:13 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-03-28 09:54:31 +1100 |
commit | c1096b7f1d49f33c85b1042f82ccb063f63e7c20 (patch) | |
tree | 3dbee77693f390af6492f186e93c65f2e295a66c /src/compiler/glsl/standalone_scaffolding.cpp | |
parent | b640dfcd0506253231b93c03de7ee393fb0dfc46 (diff) |
glsl: fix lower jumps for returns when loop is inside an if
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 fixes this
and we just let a follow pass clean it up if needed.
Fixes:
tests/spec/glsl-1.10/execution/vs-nested-return-sibling-loop.shader_test
tests/spec/glsl-1.10/execution/vs-nested-return-sibling-loop2.shader_test
Cc: "13.0 17.0" <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/compiler/glsl/standalone_scaffolding.cpp')
0 files changed, 0 insertions, 0 deletions