i965: make use of nir_lower_returns() for GL
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 9 Dec 2016 05:49:10 +0000 (16:49 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 22 Dec 2016 23:59:32 +0000 (10:59 +1100)
commit3321eb4c368e673c8d9561ea126a4672825828b1
treef7bbb118d7020c6b1d2662c2f2ca1f54b736068a
parentf20ba7ad4476013a6a322a8d562f38bc6c4e2370
i965: make use of nir_lower_returns() for GL

Fixes two new piglit tests:

spec/glsl-1.10/execution/vs-nested-return-sibling-loop.shader_test
spec/glsl-1.10/execution/vs-nested-return-sibling-loop2.shader_test

shader-db results for BDW:

total instructions in shared programs: 12903158 -> 12903134 (-0.00%)
instructions in affected programs: 27100 -> 27076 (-0.09%)
helped: 32
HURT: 6

total cycles in shared programs: 294922518 -> 294922804 (0.00%)
cycles in affected programs: 4372828 -> 4373114 (0.01%)
helped: 31
HURT: 8

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/brw_program.c