agx: add limit for max sources per non-phi

used to bound stack allocations.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
Alyssa Rosenzweig
2024-02-22 08:29:43 -04:00
committed by Marge Bot
parent 3684c9ebbd
commit afdcee6a0a
+3
View File
@@ -28,6 +28,9 @@ extern "C" {
/* Semi-arbitrary limit for spill slot allocation */
#define AGX_NUM_MODELED_REGS (2048)
/* Limit on number of sources for non-phi instructions */
#define AGX_MAX_NORMAL_SOURCES (16)
enum agx_index_type {
AGX_INDEX_NULL = 0,
AGX_INDEX_NORMAL = 1,