From afdcee6a0a6c5b99a365ec685af0d985412cf8c4 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 22 Feb 2024 08:29:43 -0400 Subject: [PATCH] agx: add limit for max sources per non-phi used to bound stack allocations. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compiler.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asahi/compiler/agx_compiler.h b/src/asahi/compiler/agx_compiler.h index c348e73a70a..d83b032b69b 100644 --- a/src/asahi/compiler/agx_compiler.h +++ b/src/asahi/compiler/agx_compiler.h @@ -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,