aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/nir/tgsi_to_nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index e1ef7bca7cc..0f365d9ebe0 100644
--- a/src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c
@@ -181,7 +181,7 @@ ttn_emit_declaration(struct ttn_compile *c)
/* for arrays, we create variables instead of registers: */
nir_variable *var = rzalloc(b->shader, nir_variable);
- var->type = glsl_array_type(glsl_vec4_type(), array_size);
+ var->type = glsl_array_type(glsl_vec4_type(), array_size, 0);
var->data.mode = nir_var_global;
var->name = ralloc_asprintf(var, "arr_%d", decl->Array.ArrayID);
@@ -265,7 +265,7 @@ ttn_emit_declaration(struct ttn_compile *c)
var->type = glsl_vec4_type();
if (is_array)
- var->type = glsl_array_type(var->type, array_size);
+ var->type = glsl_array_type(var->type, array_size, 0);
switch (file) {
case TGSI_FILE_INPUT: