summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm/lp_bld_limits.h
diff options
context:
space:
mode:
authorJames Benton <jbenton@vmware.com>2012-04-02 16:29:34 +0100
committerJosé Fonseca <jfonseca@vmware.com>2012-04-03 10:11:27 +0100
commit5db9d76a6a498c029133a8c2544c4c7c25eebf80 (patch)
treedfd944c556e15bb55834a219044f76846ede1701 /src/gallium/auxiliary/gallivm/lp_bld_limits.h
parentd312b224b6759fd9b206d4c19450f6a4dfe53311 (diff)
downloadexternal_mesa3d-5db9d76a6a498c029133a8c2544c4c7c25eebf80.zip
external_mesa3d-5db9d76a6a498c029133a8c2544c4c7c25eebf80.tar.gz
external_mesa3d-5db9d76a6a498c029133a8c2544c4c7c25eebf80.tar.bz2
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.h5
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 369c812..2dbb7ce 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_ */