Module: Mesa
Branch: master
Commit: 568a66825912d17d5a1a7f9a0dea188c079c51fc
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=568a66825912d17d5a1a7f9a0dea188c079c51fc

Author: Caio Marcelo de Oliveira Filho <[email protected]>
Date:   Wed Feb  3 20:58:31 2021 -0800

spirv: Allow variable pointers pointing to an array of blocks

Reviewed-by: Jason Ekstrand <[email protected]>
Cc: mesa-stable
Tested-by: Tapani Pälli <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8864>

---

 src/compiler/spirv/vtn_variables.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/compiler/spirv/vtn_variables.c 
b/src/compiler/spirv/vtn_variables.c
index ae0f8a9cba7..a7f9e8ad23d 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);

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to