mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
spirv: Allow variable pointers pointing to an array of blocks
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Cc: mesa-stable Tested-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8864>
This commit is contained in:
parent
6d2afe1c83
commit
568a668259
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue