Module: Mesa Branch: main Commit: 1386e1476aa8e29669c1338b05d1453295f2b609 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1386e1476aa8e29669c1338b05d1453295f2b609
Author: Faith Ekstrand <[email protected]> Date: Tue Feb 21 07:50:56 2023 -0600 lavapipe: 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/gallium/frontends/lavapipe/lvp_pipeline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/lavapipe/lvp_pipeline.c b/src/gallium/frontends/lavapipe/lvp_pipeline.c index 1288223c031..943c3b98169 100644 --- a/src/gallium/frontends/lavapipe/lvp_pipeline.c +++ b/src/gallium/frontends/lavapipe/lvp_pipeline.c @@ -408,6 +408,7 @@ lvp_shader_compile_to_ir(struct lvp_pipeline *pipeline, .float16 = true, .demote_to_helper_invocation = 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_64bit_global,
