glsl: Unroll loops with conditional breaks anywhere (not just the end)
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 1 Dec 2010 23:12:07 +0000 (15:12 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 10 Dec 2010 00:42:05 +0000 (16:42 -0800)
commit0e50c21e247b6d4246fcc2b583563a8f44bc4249
treecf9d9a9a2b5099bb2dfb42e8f203bd751e40e1b4
parent13c45c590b69341487acf21f339bf1e502eedee6
glsl: Unroll loops with conditional breaks anywhere (not just the end)

Currently we only unroll loops with conditional breaks at the end, which is
the form that lower_jumps generates.

However, if breaks are not lowered, they tend to appear at the beginning, so
add support for a conditional break anywhere.

Signed-off-by: Luca Barbieri <luca@luca-barbieri.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/loop_unroll.cpp