Lines Matching defs:nir
35 #include "compiler/nir/nir_control_flow.h"
36 #include "compiler/nir/nir_builder.h"
37 #include "compiler/nir/nir_builtin_builder.h"
38 #include "compiler/nir/nir_deref.h"
216 * TODO: add missing glsl ir to nir support and remove this loop.
234 nir_validate_shader(shader, "after glsl to nir, before function inline");
469 /* Adjust nir_variable type to align with sparse nir instructions.
471 * but sparse nir instructions output with vector dest.
1117 * non-nir drivers, NIR drivers make use of gl_nir_lower_buffers()
1120 unreachable("Invalid operation nir doesn't want lowered ssbo "
1952 /* UBO loads should only have been lowered in GLSL IR for non-nir drivers,
1955 unreachable("Invalid operation nir doesn't want lowered ubo loads");
2750 nir_shader *nir = nir_shader_create(NULL, MESA_SHADER_VERTEX, options, NULL);
2752 nir_visitor v1(&ctx->Const, nir);
2761 nir_validate_shader(nir, "float64_funcs_to_nir");
2763 NIR_PASS_V(nir, nir_lower_variable_initializers, nir_var_function_temp);
2764 NIR_PASS_V(nir, nir_lower_returns);
2765 NIR_PASS_V(nir, nir_inline_functions);
2766 NIR_PASS_V(nir, nir_opt_deref);
2773 NIR_PASS_V(nir, nir_lower_vars_to_ssa);
2774 NIR_PASS_V(nir, nir_copy_prop);
2775 NIR_PASS_V(nir, nir_opt_dce);
2776 NIR_PASS_V(nir, nir_opt_cse);
2777 NIR_PASS_V(nir, nir_opt_gcm, true);
2778 NIR_PASS_V(nir, nir_opt_peephole_select, 1, false, false);
2779 NIR_PASS_V(nir, nir_opt_dce);
2781 return nir;