aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_nir_lower_multiview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel/vulkan/anv_nir_lower_multiview.c')
-rw-r--r--src/intel/vulkan/anv_nir_lower_multiview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_nir_lower_multiview.c b/src/intel/vulkan/anv_nir_lower_multiview.c
index 498be05b7ba..c42d9c2dfa2 100644
--- a/src/intel/vulkan/anv_nir_lower_multiview.c
+++ b/src/intel/vulkan/anv_nir_lower_multiview.c
@@ -125,7 +125,7 @@ build_view_index(struct lower_multiview_state *state)
const struct glsl_type *type = glsl_int_type();
if (b->shader->info.stage == MESA_SHADER_TESS_CTRL ||
b->shader->info.stage == MESA_SHADER_GEOMETRY)
- type = glsl_array_type(type, 1);
+ type = glsl_array_type(type, 1, 0);
nir_variable *idx_var =
nir_variable_create(b->shader, nir_var_shader_in,