mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
nir/lower_mediump_io: Don't remap base unless needed
Otherwise drivers that don't use 16-bit slots for varyings will get
confused and have their driver_locations scribbled over. This has caused
multiple problems for both Panfrost and Asahi this week. Given the only
other user of the pass for varyings is radeonsi, which needs both
together, I think this is the least controversial fix.
Fixes: fb29cef8dd ("nir: add many passes that lower and optimize 16-bit input/outputs and samplers")
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11732>
This commit is contained in:
parent
4f9ac2f737
commit
03c18f7efc
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ nir_lower_mediump_io(nir_shader *nir, nir_variable_mode modes,
|
|||
}
|
||||
}
|
||||
|
||||
if (changed)
|
||||
if (changed && use_16bit_slots)
|
||||
nir_recompute_io_bases(impl, modes);
|
||||
|
||||
nir_metadata_preserve(impl, nir_metadata_all);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue