glsl: fix lowering outputs for early/nested returns
authorLars Hamre <chemecse@gmail.com>
Sun, 17 Apr 2016 17:18:32 +0000 (13:18 -0400)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 28 Apr 2016 01:01:51 +0000 (11:01 +1000)
commit32cb7d61a908c519641959158de0a44fd2c8a6e7
treec9c325bf23015846e802cffe56d8283bbc69f57e
parent122d27e9981342dc267c5aebf1a8dd8ce30689ce
glsl: fix lowering outputs for early/nested returns

Return statements in conditional blocks were not having their
output varyings lowered correctly.

This patch fixes the following piglit tests:
/spec/glsl-1.10/execution/vs-float-main-return
/spec/glsl-1.10/execution/vs-vec2-main-return
/spec/glsl-1.10/execution/vs-vec3-main-return

Signed-off-by: Lars Hamre <chemecse@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/lower_packed_varyings.cpp