Mesa (master): zink: use correct define value for reserved slot count in ntv
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 22 21:33:49 UTC 2020
Module: Mesa
Branch: master
Commit: 6e24047573fa2281ab9c068cfb13fd9a77968b1d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e24047573fa2281ab9c068cfb13fd9a77968b1d
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Jun 22 10:16:21 2020 -0400
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 at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5592>
---
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;
More information about the mesa-commit
mailing list