Module: Mesa Branch: main Commit: 1793adbd3aa03cfec2a1e722362fee95aaba74df URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1793adbd3aa03cfec2a1e722362fee95aaba74df
Author: Faith Ekstrand <faith.ekstr...@collabora.com> Date: Wed Apr 19 19:52:16 2023 -0500 nir/validate: Allow array derefs on vectors on function/shader_temp This is required by OpenCL. Reviewed-by: Karol Herbst <kher...@redhat.com> Reviewed-by: Alyssa Rosenzweig <aly...@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22580> --- src/compiler/nir/nir.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 69e6912004a..d5e099b47c7 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -213,7 +213,8 @@ typedef enum { /* Modes where vector derefs can be indexed as arrays. nir_var_shader_out * is only for mesh stages. */ - nir_var_vec_indexable_modes = nir_var_mem_ubo | nir_var_mem_ssbo | + nir_var_vec_indexable_modes = nir_var_shader_temp | nir_var_function_temp | + nir_var_mem_ubo | nir_var_mem_ssbo | nir_var_mem_shared | nir_var_mem_global | nir_var_mem_push_const | nir_var_mem_task_payload | nir_var_shader_out,