spirv: Always emit deref_buffer_array_length intrinsics
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 21 Feb 2023 14:39:30 +0000 (08:39 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Feb 2023 20:37:10 +0000 (20:37 +0000)
commit96c832c47e3384069c0eef7c45aeb032990ef67e
tree0350956c267717d6ce9a7a09c564563b21154620
parentfbeb81d8121833f1e8673b64c89ea6f63c193d01
spirv: Always emit deref_buffer_array_length intrinsics

All the drivers have been converted to setting this option now except
imagination and they don't support SSBOs yet.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3993
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>
12 files changed:
src/amd/vulkan/radv_shader.c
src/broadcom/vulkan/v3dv_pipeline.c
src/compiler/spirv/nir_spirv.h
src/compiler/spirv/spirv2nir.c
src/compiler/spirv/vtn_variables.c
src/freedreno/vulkan/tu_shader.c
src/gallium/frontends/lavapipe/lvp_pipeline.c
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan_hasvk/anv_pipeline.c
src/mesa/main/glspirv.c
src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
src/panfrost/vulkan/panvk_vX_shader.c