From 2529a0df89ca0bdbddcdc9e5b9665a4bdf8d1aa9 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Sat, 29 Jan 2022 09:35:14 -0800 Subject: [PATCH] d3d12: Use the right constant for GS varying limits Reviewed-by: Bill Kristiansen Reviewed-By: Sil Vilerino Part-of: --- src/gallium/drivers/d3d12/d3d12_gs_variant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/d3d12/d3d12_gs_variant.cpp b/src/gallium/drivers/d3d12/d3d12_gs_variant.cpp index 500a06b8b7c..97de8fa58bc 100644 --- a/src/gallium/drivers/d3d12/d3d12_gs_variant.cpp +++ b/src/gallium/drivers/d3d12/d3d12_gs_variant.cpp @@ -134,8 +134,8 @@ struct emit_primitives_context nir_builder b; unsigned num_vars; - nir_variable *in[MAX_VARYING]; - nir_variable *out[MAX_VARYING]; + nir_variable *in[VARYING_SLOT_MAX]; + nir_variable *out[VARYING_SLOT_MAX]; nir_variable *front_facing_var; nir_loop *loop;