From b80fb31678795690b2b30c0e04646eaf4993640b Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Fri, 9 Dec 2022 18:08:04 +0900 Subject: [PATCH] asahi: Allocate enough push ranges for the worst possible case We need one for every possible sysval, plus up to 16 VBOs. Fixes plasma-systemmonitor. Signed-off-by: Asahi Lina Part-of: --- src/asahi/compiler/agx_compile.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/asahi/compiler/agx_compile.h b/src/asahi/compiler/agx_compile.h index e549ee1..174b5cb 100644 --- a/src/asahi/compiler/agx_compile.h +++ b/src/asahi/compiler/agx_compile.h @@ -82,8 +82,9 @@ struct agx_push { }; }; +/* All possible push types except VBO, plus up to 16 VBOs */ +#define AGX_MAX_PUSH_RANGES (AGX_PUSH_NUM_TYPES - 1 + 16) /* Arbitrary */ -#define AGX_MAX_PUSH_RANGES (16) #define AGX_MAX_VARYINGS (32) struct agx_varyings_vs { -- 2.7.4