mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
pan/nir: Stop being so conservative about phi scalarizing
Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com> Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com> Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40769>
This commit is contained in:
parent
eca0575069
commit
f138d13672
1 changed files with 4 additions and 10 deletions
|
|
@ -1124,16 +1124,10 @@ bifrost_compile_shader_nir(nir_shader *nir,
|
|||
|
||||
bi_optimize_nir(nir, inputs->gpu_id, inputs->robust_modes);
|
||||
|
||||
{
|
||||
bool scalar_phis_pass = false;
|
||||
uint64_t gpu_id = inputs->gpu_id;
|
||||
NIR_PASS(scalar_phis_pass, nir, nir_lower_phis_to_scalar,
|
||||
bi_vectorize_filter, &gpu_id);
|
||||
if (scalar_phis_pass) {
|
||||
NIR_PASS(_, nir, nir_opt_copy_prop);
|
||||
NIR_PASS(_, nir, nir_opt_dce);
|
||||
}
|
||||
}
|
||||
uint64_t gpu_id = inputs->gpu_id;
|
||||
NIR_PASS(_, nir, nir_lower_phis_to_scalar, bi_vectorize_filter, &gpu_id);
|
||||
NIR_PASS(_, nir, nir_opt_copy_prop);
|
||||
NIR_PASS(_, nir, nir_opt_dce);
|
||||
|
||||
info->tls_size = nir->scratch_size;
|
||||
info->stage = nir->info.stage;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue