zink: use correct define value for reserved slot count in ntv
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 22 Jun 2020 14:16:21 +0000 (10:16 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Jun 2020 21:19:18 +0000 (21:19 +0000)
this is zero-indexed, so we need to include the zero index in the count

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5592>

src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c

index 47194f655c7d03406a5c17d63a34934e97450794..dfe8a6e0d4eacf3d4d0b04eb8c498d7abf892a05 100644 (file)
@@ -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;