Lines Matching defs:nir
25 #include "nir.h"
107 clc_nir_lower_system_values(nir_shader *nir, nir_variable *var)
111 foreach_list_typed(nir_function, func, node, &nir->functions) {
189 clc_nir_lower_kernel_input_loads(nir_shader *nir, nir_variable *var)
193 foreach_list_typed(nir_function, func, node, &nir->functions) {
219 add_printf_var(struct nir_shader *nir, unsigned uav_id)
225 nir_variable_create(nir, nir_var_mem_ssbo,
233 clc_lower_printf_base(nir_shader *nir, unsigned uav_id)
237 nir_foreach_function(func, nir) {
252 printf_var = add_printf_var(nir, uav_id);
273 find_identical_const_sampler(nir_shader *nir, nir_variable *sampler)
275 nir_foreach_variable_with_modes(uniform, nir, nir_var_uniform) {
291 nir_shader *nir = cb_data;
310 nir_variable *replacement = find_identical_const_sampler(nir, sampler);
324 clc_nir_dedupe_const_samplers(nir_shader *nir)
326 return nir_shader_instructions_pass(nir,
330 nir);