mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 00:40:40 +01:00
i965/nir: Do not scalarize phis in non-scalar setups
Significantly reduces register pressure in some piglit tests. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
34d162260f
commit
da1b1bf85c
1 changed files with 6 additions and 2 deletions
|
|
@ -42,8 +42,12 @@ nir_optimize(nir_shader *nir, bool is_scalar)
|
|||
|
||||
progress |= nir_copy_prop(nir);
|
||||
nir_validate_shader(nir);
|
||||
nir_lower_phis_to_scalar(nir);
|
||||
nir_validate_shader(nir);
|
||||
|
||||
if (is_scalar) {
|
||||
nir_lower_phis_to_scalar(nir);
|
||||
nir_validate_shader(nir);
|
||||
}
|
||||
|
||||
progress |= nir_copy_prop(nir);
|
||||
nir_validate_shader(nir);
|
||||
progress |= nir_opt_dce(nir);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue