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
|
@ -232,10 +232,8 @@ vtn_variable_resource_index(struct vtn_builder *b, struct vtn_variable *var,
|
||||||
{
|
{
|
||||||
vtn_assert(b->options->environment == NIR_SPIRV_VULKAN);
|
vtn_assert(b->options->environment == NIR_SPIRV_VULKAN);
|
||||||
|
|
||||||
if (!desc_array_index) {
|
if (!desc_array_index)
|
||||||
vtn_assert(var->type->base_type != vtn_base_type_array);
|
|
||||||
desc_array_index = nir_imm_int(&b->nb, 0);
|
desc_array_index = nir_imm_int(&b->nb, 0);
|
||||||
}
|
|
||||||
|
|
||||||
if (b->vars_used_indirectly) {
|
if (b->vars_used_indirectly) {
|
||||||
vtn_assert(var->var);
|
vtn_assert(var->var);
|
||||||
|
|
Loading…
Reference in New Issue