pco: scalarize push constant accesses

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta 2025-06-30 15:14:57 +01:00 committed by Marge Bot
parent c3325b22d8
commit 75cea0ceee

View file

@ -745,7 +745,12 @@ void pco_lower_nir(pco_ctx *ctx, nir_shader *nir, pco_data *data)
nir_lower_explicit_io,
nir_var_mem_push_const | nir_var_mem_shared,
nir_address_format_32bit_offset);
NIR_PASS(_, nir, nir_lower_io_to_scalar, nir_var_mem_shared, NULL, NULL);
NIR_PASS(_,
nir,
nir_lower_io_to_scalar,
nir_var_mem_push_const | nir_var_mem_shared,
NULL,
NULL);
if (data->common.robust_buffer_access)
NIR_PASS(_, nir, nir_lower_robust_access, robustness_filter, NULL);