diff --git a/.pick_status.json b/.pick_status.json index 19a724aeae9..fb0da2cea21 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -1255,7 +1255,7 @@ "description": "spirv: Allow variable pointers pointing to an array of blocks", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 1481e6b4e57..9f216158943 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -232,10 +232,8 @@ vtn_variable_resource_index(struct vtn_builder *b, struct vtn_variable *var, { vtn_assert(b->options->environment == NIR_SPIRV_VULKAN); - if (!desc_array_index) { - vtn_assert(var->type->base_type != vtn_base_type_array); + if (!desc_array_index) desc_array_index = nir_imm_int(&b->nb, 0); - } if (b->vars_used_indirectly) { vtn_assert(var->var);