mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01:00
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:
parent
3bc81ee6f1
commit
d8b32f8980
1 changed files with 4 additions and 3 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue