diff options
author | Paul Berry <[email protected]> | 2013-11-28 08:13:41 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-12-09 10:54:33 -0800 |
commit | e00b93a1f7b4bc7f5e887591c000524e13f80826 (patch) | |
tree | 4bfdfa0f56747019aed8c427fb3349adc1e53e7e /src/glsl/loop_analysis.h | |
parent | 2c17f97fe6a40e4a963fb4eec0ea0555f562b1be (diff) |
glsl/loops: replace loop controls with a normative bound.
This patch replaces the ir_loop fields "from", "to", "increment",
"counter", and "cmp" with a single integer ("normative_bound") that
serves the same purpose.
I've used the name "normative_bound" to emphasize the fact that the
back-end is required to emit code to prevent the loop from running
more than normative_bound times. (By contrast, an "informative" bound
would be a bound that is informational only).
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/loop_analysis.h')
-rw-r--r-- | src/glsl/loop_analysis.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/loop_analysis.h b/src/glsl/loop_analysis.h index 3c3719b919e..c7fa7ea07c7 100644 --- a/src/glsl/loop_analysis.h +++ b/src/glsl/loop_analysis.h @@ -44,8 +44,7 @@ analyze_loop_variables(exec_list *instructions); * * (if (expression bool ...) (break)) * - * and fill in the \c ir_loop::from, \c ir_loop::to, and \c ir_loop::counter - * fields of the \c ir_loop. + * and fill in the \c normative_bound field of the \c ir_loop. * * In this process, some conditional break-statements may be eliminated * altogether. For example, if it is provable that one loop exit condition will |