panvk: pass correct variant shader/compile inputs to panvk_lower_nir

Previously we were passing the original compile inputs, rather than the
variant-specific inputs. No actual bugs are caused by this because we
don't use the variant infrastructure for anything yet.

Fixes: ff9907927f ("panvk: Add basic infrastructure for shader variants")
Signed-off-by: Olivia Lee <olivia.lee@collabora.com>
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37463>
This commit is contained in:
Olivia Lee 2025-09-18 07:50:20 -07:00 committed by Marge Bot
parent 3bc81ee6f1
commit d8b32f8980

View file

@ -1361,9 +1361,10 @@ panvk_compile_shader(struct panvk_device *dev,
*/
nir_variants[v] = last ? nir : nir_shader_clone(NULL, nir);
panvk_lower_nir(dev, nir, info->set_layout_count, info->set_layouts,
info->robustness, noperspective_varyings, state,
&inputs, variant);
panvk_lower_nir(dev, nir_variants[v], info->set_layout_count,
info->set_layouts, info->robustness,
noperspective_varyings, state, &input_variants[v],
variant);
/* Allow the remaining FAU space to be filled with constants. */
input_variants[v].fau_consts.max_amount =