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 <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21446>
This commit is contained in:
Faith Ekstrand
2023-02-21 07:50:56 -06:00
committed by Marge Bot
parent 85634a70ec
commit 1386e1476a

View File

@@ -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,