From 1386e1476aa8e29669c1338b05d1453295f2b609 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Tue, 21 Feb 2023 07:50:56 -0600 Subject: [PATCH] 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 Part-of: --- 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,