| /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/ |
| nir_sweep.c | 24 #include "nir.h" 41 static void sweep_cf_node(nir_shader *nir, nir_cf_node *cf_node); 44 sweep_src_indirect(nir_src *src, void *nir) 47 ralloc_steal(nir, src->reg.indirect); 53 sweep_dest_indirect(nir_dest *dest, void *nir) 56 ralloc_steal(nir, dest->reg.indirect); 62 sweep_block(nir_shader *nir, nir_block *block) 64 ralloc_steal(nir, block); 76 ralloc_steal(nir, instr); 78 nir_foreach_src(instr, sweep_src_indirect, nir); [all...] |
| nir_lower_clip_cull_distance_arrays.c | 24 #include "nir.h" 41 get_unwrapped_array_length(nir_shader *nir, nir_variable *var) 51 if (nir_is_per_vertex_io(var, nir->info.stage)) 60 combine_clip_cull(nir_shader *nir, 90 const unsigned clip_array_size = get_unwrapped_array_length(nir, clip); 91 const unsigned cull_array_size = get_unwrapped_array_length(nir, cull); 94 nir->info.clip_distance_array_size = clip_array_size; 95 nir->info.cull_distance_array_size = cull_array_size; 110 nir_foreach_function(function, nir) { 124 nir_lower_clip_cull_distance_arrays(nir_shader *nir) [all...] |
| nir_opcodes_c.py | 32 #include "nir.h" 87 unreachable("Invalid 16-bit nir rounding mode"); 95 unreachable("Invalid nir alu bit size"); 99 unreachable("Invalid nir alu base type"); 103 unreachable("Invalid nir alu base type");
|
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/tests/ |
| algebraic_parser_test.sh | 3 $PYTHON $srcdir/nir/tests/algebraic_parser_test.py
|
| /xsrc/external/mit/MesaLib/dist/src/microsoft/clc/ |
| clc_nir.h | 28 #include "nir.h" 31 clc_nir_lower_system_values(nir_shader *nir, nir_variable *var); 32 bool clc_nir_lower_kernel_input_loads(nir_shader *nir, nir_variable *var); 34 bool clc_lower_printf_base(nir_shader *nir, unsigned uav_id); 37 clc_nir_dedupe_const_samplers(nir_shader *nir);
|
| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/ |
| nir_sweep.c | 24 #include "nir.h" 41 static void sweep_cf_node(nir_shader *nir, nir_cf_node *cf_node); 44 sweep_block(nir_shader *nir, nir_block *block) 46 ralloc_steal(nir, block); 59 list_add(&instr->gc_node, &nir->gc_list); 64 sweep_if(nir_shader *nir, nir_if *iff) 66 ralloc_steal(nir, iff); 69 sweep_cf_node(nir, cf_node); 73 sweep_cf_node(nir, cf_node); 78 sweep_loop(nir_shader *nir, nir_loop *loop [all...] |
| nir_lower_clip_cull_distance_arrays.c | 24 #include "nir.h" 41 get_unwrapped_array_length(nir_shader *nir, nir_variable *var) 51 if (nir_is_arrayed_io(var, nir->info.stage)) 60 combine_clip_cull(nir_shader *nir, 67 nir_foreach_variable_with_modes(var, nir, mode) { 81 nir->info.clip_distance_array_size = 0; 82 nir->info.cull_distance_array_size = 0; 99 const unsigned clip_array_size = get_unwrapped_array_length(nir, clip); 100 const unsigned cull_array_size = get_unwrapped_array_length(nir, cull); 103 nir->info.clip_distance_array_size = clip_array_size [all...] |
| nir_opcodes_c.py | 30 #include "nir.h" 85 unreachable("Invalid 16-bit nir rounding mode"); 93 unreachable("Invalid nir alu bit size"); 97 unreachable("Invalid nir alu base type"); 101 unreachable("Invalid nir alu base type");
|
| /xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/ |
| st_nir_builtins.c | 27 #include "compiler/nir/nir_builder.h" 33 nir_shader *nir) 36 gl_shader_stage stage = nir->info.stage; 38 nir->info.separate_shader = true; 40 nir->info.fs.untyped_color_outputs = true; 42 NIR_PASS_V(nir, nir_lower_global_vars_to_local); 43 NIR_PASS_V(nir, nir_split_var_copies); 44 NIR_PASS_V(nir, nir_lower_var_copies); 45 NIR_PASS_V(nir, nir_lower_system_values); 46 NIR_PASS_V(nir, nir_lower_compute_system_values, NULL) [all...] |
| st_nir.h | 40 void st_nir_lower_wpos_ytransform(struct nir_shader *nir, 46 struct nir_shader *nir, bool finalize_by_driver, 49 void st_nir_opts(struct nir_shader *nir); 55 void st_nir_assign_vs_in_locations(struct nir_shader *nir); 57 struct nir_shader *nir); 59 void st_nir_lower_samplers(struct pipe_screen *screen, struct nir_shader *nir, 62 void st_nir_lower_uniforms(struct st_context *st, struct nir_shader *nir); 66 struct nir_shader *nir);
|
| st_glsl_to_nir.cpp | 46 #include "compiler/nir/nir.h" 63 * may need to fix up varying slots so the glsl->nir path is aligned 64 * with the anything->tgsi->nir path. 89 st_shader_gather_info(nir_shader *nir, struct gl_program *prog) 91 nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir)); 96 prog->info = nir->info; 107 st_nir_assign_vs_in_locations(struct nir_shader *nir) 109 if (nir->info.stage != MESA_SHADER_VERTEX || nir->info.io_lowered 361 nir_shader *nir = prog->nir; local 476 nir_shader *nir = prog->nir; local 818 nir_shader *nir = shader->Program->nir; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/nir/ |
| nir_to_tgsi_info.h | 33 void nir_tgsi_scan_shader(const struct nir_shader *nir, 37 static inline void nir_tgsi_scan_shader(const struct nir_shader *nir,
|
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/standalone/ |
| lima_compiler_cmdline.c | 62 sort_varyings(nir_shader *nir, nir_variable_mode mode) 66 nir_foreach_variable_with_modes_safe(var, nir, mode) { 70 exec_list_append(&nir->variables, &new_list); 74 fixup_varying_slots(nir_shader *nir, nir_variable_mode mode) 76 nir_foreach_variable_with_modes(var, nir, mode) { 115 nir_shader *nir = glsl_to_nir(&local_ctx, prog, stage, nir_options); local 117 /* required NIR passes: */ 119 nir->info.stage == MESA_SHADER_VERTEX || 120 nir->info.stage == MESA_SHADER_GEOMETRY) { 121 NIR_PASS_V(nir, nir_lower_io_to_temporaries 219 nir_shader *nir = load_glsl(1, filename, stage); local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/ |
| ir3_cmdline.c | 37 #include "nir/tgsi_to_nir.h" 81 sort_varyings(nir_shader *nir, nir_variable_mode mode) 85 nir_foreach_variable_with_modes_safe (var, nir, mode) { 89 exec_list_append(&nir->variables, &new_list); 93 fixup_varying_slots(nir_shader *nir, nir_variable_mode mode) 95 nir_foreach_variable_with_modes (var, nir, mode) { 124 nir_shader *nir = glsl_to_nir(&local_ctx, prog, stage, nir_options); local 126 /* required NIR passes: */ 128 nir->info.stage == MESA_SHADER_VERTEX || 129 nir->info.stage == MESA_SHADER_GEOMETRY) 244 nir_shader *nir; local 369 nir_shader *nir; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/microsoft/spirv_to_dxil/ |
| spirv_to_dxil.c | 46 add_runtime_data_var(nir_shader *nir, unsigned desc_set, unsigned binding) 49 nir->info.stage == MESA_SHADER_COMPUTE 58 nir, nir_var_mem_ubo, 185 nir_shader *nir = spirv_to_nir( local 189 if (!nir) { 194 nir_validate_shader(nir, 195 "Validate before feeding NIR to the DXIL compiler"); 201 NIR_PASS_V(nir, nir_lower_sysvals_to_varyings, &sysvals_to_varyings); 203 NIR_PASS_V(nir, nir_lower_system_values); 212 NIR_PASS_V(nir, dxil_nir_lower_system_values_to_zero, system_values [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/ |
| si_shader_nir.c | 27 #include "compiler/nir/nir.h" 28 #include "compiler/nir/nir_builder.h" 29 #include "compiler/nir/nir_deref.h" 201 static void scan_instruction(const struct nir_shader *nir, struct si_shader_info *info, 261 if (nir->info.stage == MESA_SHADER_VERTEX || 262 nir->info.stage == MESA_SHADER_TESS_EVAL) 397 void si_nir_scan_shader(const struct nir_shader *nir, struct si_shader_info *info) 401 info->base = nir->info; 402 info->stage = nir->info.stage 930 struct nir_shader *nir = (struct nir_shader *)nirptr; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/ |
| brw_nir.h | 28 #include "compiler/nir/nir.h" 93 void brw_nir_analyze_boolean_resolves(nir_shader *nir); 96 nir_shader *nir, 103 bool brw_nir_lower_cs_intrinsics(nir_shader *nir, 105 void brw_nir_lower_vs_inputs(nir_shader *nir, 107 void brw_nir_lower_vue_inputs(nir_shader *nir, 109 void brw_nir_lower_tes_inputs(nir_shader *nir, const struct brw_vue_map *vue); 110 void brw_nir_lower_fs_inputs(nir_shader *nir, 113 void brw_nir_lower_vue_outputs(nir_shader *nir); [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/ |
| Android.nir.gen.mk | 35 $(intermediates)/nir \ 36 $(MESA_TOP)/src/compiler/nir 39 $(intermediates)/nir \ 41 $(MESA_TOP)/src/compiler/nir 48 nir/nir_opcodes.h \ 49 nir/nir_intrinsics.h \ 50 nir/nir_builder_opcodes.h) 52 nir_builder_opcodes_gen := $(LOCAL_PATH)/nir/nir_builder_opcodes_h.py 54 $(LOCAL_PATH)/nir/nir_opcodes.py \ 55 $(LOCAL_PATH)/nir/nir_builder_opcodes_h.p [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/ |
| st_glsl_to_nir.cpp | 44 #include "compiler/nir/nir.h" 59 * may need to fix up varying slots so the glsl->nir path is aligned 60 * with the anything->tgsi->nir path. 84 st_nir_assign_vs_in_locations(nir_shader *nir) 86 nir->num_inputs = 0; 87 nir_foreach_variable_safe(var, &nir->inputs) { 88 /* NIR already assigns dual-slot inputs to two locations so all we have 93 var->data.driver_location = util_bitcount64(nir->info.inputs_read); 94 } else if (nir->info.inputs_read & BITFIELD64_BIT(var->data.location)) 455 nir_shader *nir = prog->nir; local 627 nir_shader *nir = st_glsl_to_nir(st, prog, shader_program, shader->Stage); local 791 nir_shader *nir = shader->Program->nir; local [all...] |
| st_nir_builtins.c | 27 #include "compiler/nir/nir_builder.h" 31 nir_shader *nir, 36 enum pipe_shader_type p_stage = pipe_shader_type_from_mesa(nir->info.stage); 40 nir->info.name = ralloc_strdup(nir, name); 41 nir->info.separate_shader = true; 42 if (nir->info.stage == MESA_SHADER_FRAGMENT) 43 nir->info.fs.untyped_color_outputs = true; 45 NIR_PASS_V(nir, nir_lower_global_vars_to_local); 46 NIR_PASS_V(nir, nir_split_var_copies) [all...] |
| st_nir.h | 40 void st_nir_lower_wpos_ytransform(struct nir_shader *nir, 46 struct nir_shader *nir); 48 void st_nir_opts(struct nir_shader *nir, bool is_scalar); 55 struct nir_shader *nir); 57 void st_nir_lower_samplers(struct pipe_screen *screen, struct nir_shader *nir, 63 struct nir_shader *nir,
|
| /xsrc/external/mit/MesaLib/dist/src/vulkan/util/ |
| vk_shader_module.h | 38 struct nir_shader *nir; member in struct:vk_shader_module 51 .nir = _nir, \ 56 .nir = _nir, \
|
| /xsrc/external/mit/MesaLib/dist/src/panfrost/bifrost/ |
| cmdline.c | 92 sort_varyings(nir_shader *nir, nir_variable_mode mode) 96 nir_foreach_variable_with_modes_safe (var, nir, mode) { 100 exec_list_append(&nir->variables, &new_list); 104 fixup_varying_slots(nir_shader *nir, nir_variable_mode mode) 106 nir_foreach_variable_with_modes (var, nir, mode) { 120 nir_shader *nir[MESA_SHADER_COMPUTE + 1]; local 151 nir[i] = glsl_to_nir(&local_ctx, prog, shader_types[i], &bifrost_nir_options); 154 nir_assign_var_locations(nir[i], nir_var_shader_in, &nir[i]->num_inputs, 156 sort_varyings(nir[i], nir_var_shader_out) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/amd/common/ |
| ac_nir_to_llvm.h | 48 void ac_lower_indirect_derefs(struct nir_shader *nir, enum chip_class); 50 bool ac_are_tessfactors_def_in_all_invocs(const struct nir_shader *nir); 53 struct nir_shader *nir); 58 struct nir_shader *nir,
|
| /xsrc/external/mit/MesaLib/dist/src/intel/compiler/ |
| brw_nir.h | 28 #include "compiler/nir/nir.h" 92 void brw_nir_analyze_boolean_resolves(nir_shader *nir); 95 nir_shader *nir, 102 bool brw_nir_lower_cs_intrinsics(nir_shader *nir); 104 void brw_nir_lower_legacy_clipping(nir_shader *nir, 107 void brw_nir_lower_vs_inputs(nir_shader *nir, 110 void brw_nir_lower_vue_inputs(nir_shader *nir, 112 void brw_nir_lower_tes_inputs(nir_shader *nir, const struct brw_vue_map *vue); 113 void brw_nir_lower_fs_inputs(nir_shader *nir, [all...] |