From 6e24047573fa2281ab9c068cfb13fd9a77968b1d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 22 Jun 2020 10:16:21 -0400 Subject: [PATCH] zink: use correct define value for reserved slot count in ntv this is zero-indexed, so we need to include the zero index in the count Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c index 47194f655c7..dfe8a6e0d4e 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c +++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c @@ -87,7 +87,7 @@ static unsigned slot_pack_map[] = { [VARYING_SLOT_VIEW_INDEX] = 9, /* input/output */ [VARYING_SLOT_VIEWPORT_MASK] = 10, /* output only */ }; -#define NTV_MIN_RESERVED_SLOTS 10 +#define NTV_MIN_RESERVED_SLOTS 11 struct ntv_context { struct spirv_builder builder; -- 2.30.2