From a45c84f2266a0e117b867bbab694f25352c603d2 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 13 Sep 2021 07:49:54 -0400 Subject: [PATCH] zink: fix ZINK_MAX_DESCRIPTORS_PER_TYPE to stop exploding the stack this isn't the max per type, it's the max that can be used for a type, which is the max used by a shader stage * the number of shader stages Cc: mesa-stable Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/zink_descriptors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_descriptors.h b/src/gallium/drivers/zink/zink_descriptors.h index 1b19b8b..a2b56da 100644 --- a/src/gallium/drivers/zink/zink_descriptors.h +++ b/src/gallium/drivers/zink/zink_descriptors.h @@ -48,7 +48,7 @@ enum zink_descriptor_type { ZINK_DESCRIPTOR_TYPES, }; -#define ZINK_MAX_DESCRIPTORS_PER_TYPE 32 +#define ZINK_MAX_DESCRIPTORS_PER_TYPE (32 * ZINK_SHADER_COUNT) struct zink_descriptor_refs { struct util_dynarray refs; -- 2.7.4