mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 16:00:09 +01:00
nak: Drop lower_io_arrays_to_elements_no_indirects for FS outputs
All we really need is for them to have no indirects which we can ensure via nir_lower_indirect_derefs. Splitting into individual variables is a relic of older attempts at FS output lowering and not needed. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28377>
This commit is contained in:
parent
d4ac4ce112
commit
a1e8bba7fa
1 changed files with 2 additions and 3 deletions
|
|
@ -687,8 +687,6 @@ nak_nir_lower_fs_outputs(nir_shader *nir)
|
|||
if (nir->info.outputs_written == 0)
|
||||
return false;
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_io_arrays_to_elements_no_indirects, true);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_io, nir_var_shader_out, type_size_vec4, 0);
|
||||
|
||||
NIR_PASS_V(nir, nir_shader_intrinsics_pass, lower_fs_output_intrin,
|
||||
|
|
@ -930,7 +928,8 @@ nak_postprocess_nir(nir_shader *nir,
|
|||
break;
|
||||
|
||||
case MESA_SHADER_FRAGMENT:
|
||||
OPT(nir, nir_lower_indirect_derefs, nir_var_shader_in, UINT32_MAX);
|
||||
OPT(nir, nir_lower_indirect_derefs,
|
||||
nir_var_shader_in | nir_var_shader_out, UINT32_MAX);
|
||||
OPT(nir, nak_nir_lower_varyings, nir_var_shader_in);
|
||||
OPT(nir, nir_opt_constant_folding);
|
||||
OPT(nir, nak_nir_lower_fs_inputs, nak, fs_key);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue