diff options
author | James Benton <jbenton@vmware.com> | 2012-04-02 16:29:34 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2012-04-03 10:11:27 +0100 |
commit | 5db9d76a6a498c029133a8c2544c4c7c25eebf80 (patch) | |
tree | dfd944c556e15bb55834a219044f76846ede1701 /src/gallium/auxiliary/gallivm/lp_bld_limits.h | |
parent | d312b224b6759fd9b206d4c19450f6a4dfe53311 (diff) |
gallivm: Maximum loop iterations
Limits maximum loop iterations in a TGSI shader to prevent infinite
loops from occurring, any iteration in any loop counts towards this
limit
Signed-off-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_limits.h')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_limits.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_limits.h b/src/gallium/auxiliary/gallivm/lp_bld_limits.h index 369c8121b5c..2dbb7cee29b 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_limits.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_limits.h @@ -51,5 +51,10 @@ */ #define LP_MAX_TGSI_NESTING 32 +/** + * Maximum iterations before loop termination + * Shared between every loop in a TGSI shader + */ +#define LP_MAX_TGSI_LOOP_ITERATIONS 65535 #endif /* LP_BLD_LIMITS_H_ */ |