commit | 6e24047573fa2281ab9c068cfb13fd9a77968b1d | [log] [tgz] |
---|---|---|
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | Mon Jun 22 10:16:21 2020 -0400 |
committer | Marge Bot <eric+marge@anholt.net> | Mon Jun 22 21:19:18 2020 +0000 |
tree | 51f4bd72d1f251ec9abaf5e9869ae0772da34010 | |
parent | c323e0ddf3db8d1e38906fc4fa297bf6f26ec3cd [diff] |
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 <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5592>
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 47194f6..dfe8a6e 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 @@ [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;