Lines Matching refs:nir

25 #include "nir/nir.h"
26 #include "nir/nir_schedule.h"
78 nir_shader *nir,
83 nir_validate_shader(nir, "after spirv_to_nir");
86 NIR_PASS_V(nir, nir_split_var_copies);
87 NIR_PASS_V(nir, nir_split_per_member_structs);
90 NIR_PASS_V(nir, nir_lower_clamp_color_outputs);
93 NIR_PASS_V(nir,
100 NIR_PASS_V(nir, nir_lower_io_to_scalar, nir_var_shader_in);
107 NIR_PASS_V(nir, nir_opt_access, &opt_access_options);
110 if (nir->info.stage == MESA_SHADER_FRAGMENT)
111 NIR_PASS_V(nir, rogue_nir_pfo);
114 NIR_PASS_V(nir, nir_lower_io_to_scalar, nir_var_shader_out);
117 NIR_PASS_V(nir, nir_lower_alu_to_scalar, NULL, NULL);
123 NIR_PASS(progress, nir, nir_copy_prop);
124 NIR_PASS(progress, nir, nir_opt_cse);
125 NIR_PASS(progress, nir, nir_opt_algebraic);
126 NIR_PASS(progress, nir, nir_opt_constant_folding);
127 NIR_PASS(progress, nir, nir_opt_dce);
128 NIR_PASS_V(nir, nir_opt_gcm, false);
132 NIR_PASS_V(nir,
136 NIR_PASS_V(nir, rogue_nir_lower_io, NULL);
142 NIR_PASS(progress, nir, nir_opt_algebraic_late);
143 NIR_PASS_V(nir, nir_opt_constant_folding);
144 NIR_PASS_V(nir, nir_copy_prop);
145 NIR_PASS_V(nir, nir_opt_dce);
146 NIR_PASS_V(nir, nir_opt_cse);
150 NIR_PASS_V(nir, rogue_nir_constreg);
152 NIR_PASS_V(nir, nir_opt_dce);
155 NIR_PASS_V(nir, nir_opt_move, nir_move_load_ubo | nir_move_load_input);
158 NIR_PASS_V(nir, nir_lower_vec_to_movs, NULL, NULL);
161 NIR_PASS_V(nir, nir_convert_from_ssa, false);
169 NIR_PASS_V(nir, nir_schedule, &schedule_options);
173 nir_assign_io_var_locations(nir,
175 &nir->num_inputs,
176 nir->info.stage);
177 nir_assign_io_var_locations(nir,
179 &nir->num_outputs,
180 nir->info.stage);
182 /* Gather info into nir shader struct. */
183 nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
186 nir_sweep(nir);
188 nir_validate_shader(nir, "after passes");