mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-29 18:28:14 +02: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>
(cherry picked from commit 568a668259)
This commit is contained in:
parent
40f3ce141a
commit
e28d43f108
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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