Lines Matching defs:nir
25 #include "nir.h"
65 nir_recompute_io_bases(nir_shader *nir, nir_variable_mode modes)
67 nir_function_impl *impl = nir_shader_get_entrypoint(nir);
145 nir_lower_mediump_io(nir_shader *nir, nir_variable_mode modes,
149 nir_function_impl *impl = nir_shader_get_entrypoint(nir);
164 bool is_varying = !(nir->info.stage == MESA_SHADER_VERTEX &&
166 !(nir->info.stage == MESA_SHADER_FRAGMENT &&
236 nir_recompute_io_bases(nir, modes);
254 nir_force_mediump_io(nir_shader *nir, nir_variable_mode modes,
258 nir_function_impl *impl = nir_shader_get_entrypoint(nir);
281 if (nir->info.stage == MESA_SHADER_FRAGMENT &&
287 } else if (nir->info.stage == MESA_SHADER_VERTEX &&
318 nir_unpack_16bit_varying_slots(nir_shader *nir, nir_variable_mode modes)
321 nir_function_impl *impl = nir_shader_get_entrypoint(nir);
347 nir_recompute_io_bases(nir, modes);
411 nir_legalize_16bit_sampler_srcs(nir_shader *nir,
415 nir_function_impl *impl = nir_shader_get_entrypoint(nir);
765 bool nir_fold_16bit_tex_image(nir_shader *nir,
768 return nir_shader_instructions_pass(nir,