Module: Mesa
Branch: main
Commit: fbeb81d8121833f1e8673b64c89ea6f63c193d01
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fbeb81d8121833f1e8673b64c89ea6f63c193d01

Author: Faith Ekstrand <[email protected]>
Date:   Tue Feb 21 08:37:19 2023 -0600

v3dv: 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]>
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>

---

 src/broadcom/vulkan/v3dv_pipeline.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/broadcom/vulkan/v3dv_pipeline.c 
b/src/broadcom/vulkan/v3dv_pipeline.c
index 60b30e05a3a..50e6f78ff37 100644
--- a/src/broadcom/vulkan/v3dv_pipeline.c
+++ b/src/broadcom/vulkan/v3dv_pipeline.c
@@ -176,6 +176,7 @@ static const struct spirv_to_nir_options 
default_spirv_options =  {
       .workgroup_memory_explicit_layout = true,
       .image_read_without_format = true,
     },
+   .use_deref_buffer_array_length = true,
    .ubo_addr_format = nir_address_format_32bit_index_offset,
    .ssbo_addr_format = nir_address_format_32bit_index_offset,
    .phys_ssbo_addr_format = nir_address_format_2x32bit_global,

Reply via email to