Skip to content
Snippets Groups Projects
Commit 6613fba2 authored by Timothy Arceri's avatar Timothy Arceri Committed by Andres Gomez
Browse files

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" <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarRoland Scheidegger <sroland@vmware.com>
(cherry picked from commit c1096b7f)
parent 613e6e4d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment