Module: Mesa Branch: main Commit: 85634a70ec38e5d12a7031138d29553c949d1340 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=85634a70ec38e5d12a7031138d29553c949d1340
Author: Faith Ekstrand <[email protected]> Date: Tue Feb 21 07:49:58 2023 -0600 turnip: Set spirv_options::use_deref_buffer_array_length It'll get lowered to get_ssbo_size by nir_lower_explicit_io() so the driver should never notice this change. Acked-by: Caio Oliveira <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446> --- src/freedreno/vulkan/tu_shader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/freedreno/vulkan/tu_shader.c b/src/freedreno/vulkan/tu_shader.c index 1f414f87c10..575d8032c80 100644 --- a/src/freedreno/vulkan/tu_shader.c +++ b/src/freedreno/vulkan/tu_shader.c @@ -26,6 +26,7 @@ tu_spirv_to_nir(struct tu_device *dev, { /* TODO these are made-up */ const struct spirv_to_nir_options spirv_options = { + .use_deref_buffer_array_length = true, .ubo_addr_format = nir_address_format_vec2_index_32bit_offset, .ssbo_addr_format = nir_address_format_vec2_index_32bit_offset,
