Lines Matching defs:nir
227 struct nir_shader *nir,
234 nir->options = compiler->nir_options[MESA_SHADER_FRAGMENT];
241 brw_preprocess_nir(compiler, nir, NULL);
242 nir_remove_dead_variables(nir, nir_var_shader_in, NULL);
243 nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
246 if (nir->info.fs.uses_discard)
249 wm_key->input_slots_valid = nir->info.inputs_read | VARYING_BIT_POS;
253 .nir = nir,
268 struct nir_shader *nir,
273 nir->options = compiler->nir_options[MESA_SHADER_VERTEX];
275 brw_preprocess_nir(compiler, nir, NULL);
276 nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
278 vs_prog_data->inputs_read = nir->info.inputs_read;
282 nir->info.outputs_written,
283 nir->info.separate_shader,
289 .nir = nir,
302 struct nir_shader *nir,
308 nir->options = compiler->nir_options[MESA_SHADER_COMPUTE];
312 brw_preprocess_nir(compiler, nir, NULL);
313 nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
315 NIR_PASS_V(nir, nir_lower_io, nir_var_uniform, type_size_scalar_bytes,
320 nir->num_uniforms = offsetof(struct brw_blorp_wm_inputs, subgroup_id);
321 unsigned nr_params = nir->num_uniforms / 4;
325 NIR_PASS_V(nir, brw_nir_lower_cs_intrinsics);
328 .nir = nir,