From: Mike Blumenkrantz Date: Mon, 22 Jun 2020 14:16:21 +0000 (-0400) Subject: zink: use correct define value for reserved slot count in ntv X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e24047573fa2281ab9c068cfb13fd9a77968b1d;p=mesa.git 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: --- 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;