d3d12: Use the right constant for GS varying limits
authorJesse Natalie <jenatali@microsoft.com>
Sat, 29 Jan 2022 17:35:14 +0000 (09:35 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Feb 2022 00:07:53 +0000 (00:07 +0000)
Reviewed-by: Bill Kristiansen <billkris@microsoft.com>
Reviewed-By: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14837>

src/gallium/drivers/d3d12/d3d12_gs_variant.cpp

index 500a06b..97de8fa 100644 (file)
@@ -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;