Searched refs:nir (Results 1 - 25 of 538) sorted by relevance

1234567891011>>

/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
H A Dnir_sweep.c24 #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) argument
47 ralloc_steal(nir, src->reg.indirect);
53 sweep_dest_indirect(nir_dest *dest, void *nir) argument
56 ralloc_steal(nir, dest->reg.indirect);
62 sweep_block(nir_shader *nir, nir_block *block) argument
64 ralloc_steal(nir, block);
76 ralloc_steal(nir, instr);
78 nir_foreach_src(instr, sweep_src_indirect, nir);
84 sweep_if(nir_shader * nir,nir_if * iff) argument
98 sweep_loop(nir_shader * nir,nir_loop * loop) argument
108 sweep_cf_node(nir_shader * nir,nir_cf_node * cf_node) argument
126 sweep_impl(nir_shader * nir,nir_function_impl * impl) argument
144 sweep_function(nir_shader * nir,nir_function * f) argument
154 nir_sweep(nir_shader * nir) argument
[all...]
H A Dnir_lower_clip_cull_distance_arrays.c24 #include "nir.h"
41 get_unwrapped_array_length(nir_shader *nir, nir_variable *var) argument
51 if (nir_is_per_vertex_io(var, nir->info.stage))
60 combine_clip_cull(nir_shader *nir, argument
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) argument
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/tests/
H A Dalgebraic_parser_test.sh3 $PYTHON $srcdir/nir/tests/algebraic_parser_test.py
/xsrc/external/mit/MesaLib.old/dist/src/compiler/
H A DMakefile.sources197 nir/nir_builder_opcodes.h \
198 nir/nir_constant_expressions.c \
199 nir/nir_intrinsics.c \
200 nir/nir_intrinsics.h \
201 nir/nir_opcodes.c \
202 nir/nir_opcodes.h \
203 nir/nir_opt_algebraic.c
206 nir/nir.c \
207 nir/ni
[all...]
H A DAndroid.nir.gen.mk35 $(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_
[all...]
/xsrc/external/mit/MesaLib/dist/src/microsoft/clc/
H A Dclc_nir.h28 #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/
H A Dnir_sweep.c24 #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) argument
46 ralloc_steal(nir, block);
59 list_add(&instr->gc_node, &nir->gc_list);
64 sweep_if(nir_shader *nir, nir_if *iff) argument
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_loo argument
88 sweep_cf_node(nir_shader * nir,nir_cf_node * cf_node) argument
106 sweep_impl(nir_shader * nir,nir_function_impl * impl) argument
124 sweep_function(nir_shader * nir,nir_function * f) argument
134 nir_sweep(nir_shader * nir) argument
[all...]
H A Dnir_lower_clip_cull_distance_arrays.c24 #include "nir.h"
41 get_unwrapped_array_length(nir_shader *nir, nir_variable *var) argument
51 if (nir_is_arrayed_io(var, nir->info.stage))
60 combine_clip_cull(nir_shader *nir, argument
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
123 nir_lower_clip_cull_distance_arrays(nir_shader * nir) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
H A Dst_nir_builtins.c27 #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_value
32 st_nir_finish_builtin_shader(struct st_context * st,nir_shader * nir) argument
[all...]
H A Dst_nir.h40 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);
H A Dst_glsl_to_nir.cpp46 #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) argument
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) argument
109 if (nir
200 st_nir_assign_uniform_locations(struct gl_context * ctx,struct gl_program * prog,nir_shader * nir) argument
256 st_nir_opts(nir_shader * nir) argument
361 nir_shader *nir = prog->nir; local in function:st_nir_preprocess
476 nir_shader *nir = prog->nir; local in function:st_glsl_to_nir_post_opts
684 st_nir_lower_wpos_ytransform(struct nir_shader * nir,struct gl_program * prog,struct pipe_screen * pscreen) argument
818 nir_shader *nir = shader->Program->nir; local in function:st_link_nir
944 st_nir_assign_varying_locations(struct st_context * st,nir_shader * nir) argument
979 st_nir_lower_samplers(struct pipe_screen * screen,nir_shader * nir,struct gl_shader_program * shader_program,struct gl_program * prog) argument
1008 st_nir_lower_uniforms(struct st_context * st,nir_shader * nir) argument
1030 st_finalize_nir(struct st_context * st,struct gl_program * prog,struct gl_shader_program * shader_program,nir_shader * nir,bool finalize_by_driver,bool is_before_variants) argument
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/standalone/
H A Dlima_compiler_cmdline.c62 sort_varyings(nir_shader *nir, nir_variable_mode mode) argument
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) argument
76 nir_foreach_variable_with_modes(var, nir, mode) {
115 nir_shader *nir = glsl_to_nir(&local_ctx, prog, stage, nir_options); local in function:load_glsl
119 nir->info.stage == MESA_SHADER_VERTEX ||
120 nir->info.stage == MESA_SHADER_GEOMETRY) {
121 NIR_PASS_V(nir, nir_lower_io_to_temporaries,
122 nir_shader_get_entrypoint(nir),
219 nir_shader *nir = load_glsl(1, filename, stage); local in function:main
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/nir/
H A Dnir_to_tgsi_info.h33 void nir_tgsi_scan_shader(const struct nir_shader *nir,
37 static inline void nir_tgsi_scan_shader(const struct nir_shader *nir, argument
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/ir3/
H A Dir3_cmdline.c37 #include "nir/tgsi_to_nir.h"
81 sort_varyings(nir_shader *nir, nir_variable_mode mode) argument
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) argument
95 nir_foreach_variable_with_modes (var, nir, mode) {
124 nir_shader *nir = glsl_to_nir(&local_ctx, prog, stage, nir_options); local in function:load_glsl
128 nir->info.stage == MESA_SHADER_VERTEX ||
129 nir->info.stage == MESA_SHADER_GEOMETRY) {
130 NIR_PASS_V(nir, nir_lower_io_to_temporarie
244 nir_shader *nir; local in function:load_spirv
369 nir_shader *nir; local in function:main
[all...]
/xsrc/external/mit/MesaLib/dist/src/microsoft/spirv_to_dxil/
H A Dspirv_to_dxil.c46 add_runtime_data_var(nir_shader *nir, unsigned desc_set, unsigned binding) argument
49 nir->info.stage == MESA_SHADER_COMPUTE
58 nir, nir_var_mem_ubo,
185 nir_shader *nir = spirv_to_nir( local in function:spirv_to_dxil
189 if (!nir) {
194 nir_validate_shader(nir,
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,
217 NIR_PASS(requires_runtime_data, nir,
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/radeonsi/
H A Dsi_shader_nir.c27 #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, argument
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) argument
401 info->base = nir->info;
402 info->stage = nir
557 si_nir_opts(struct si_screen * sscreen,struct nir_shader * nir,bool first) argument
634 si_nir_late_opts(nir_shader * nir) argument
647 si_late_optimize_16bit_samplers(struct si_screen * sscreen,nir_shader * nir) argument
696 si_nir_lower_color(nir_shader * nir) argument
741 si_lower_io(struct nir_shader * nir) argument
828 si_lower_nir(struct si_screen * sscreen,struct nir_shader * nir) argument
930 struct nir_shader *nir = (struct nir_shader *)nirptr; local in function:si_finalize_nir
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/
H A Dbrw_nir.h28 #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/mesa/state_tracker/
H A Dst_glsl_to_nir.cpp44 #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) argument
86 nir->num_inputs = 0;
87 nir_foreach_variable_safe(var, &nir->inputs) {
93 var->data.driver_location = util_bitcount64(nir->info.inputs_read);
94 } else if (nir->info.inputs_read & BITFIELD64_BIT(var->data.location)) {
96 util_bitcount64(nir
304 st_nir_opts(nir_shader * nir,bool scalar) argument
364 nir_shader *nir = glsl_to_nir(st->ctx, shader_program, stage, options); local in function:st_glsl_to_nir
455 nir_shader *nir = prog->nir; local in function:st_glsl_to_nir_post_opts
551 set_st_program(struct gl_program * prog,struct gl_shader_program * shader_program,nir_shader * nir) argument
627 nir_shader *nir = st_glsl_to_nir(st, prog, shader_program, shader->Stage); local in function:st_nir_get_mesa_program
708 st_nir_lower_wpos_ytransform(struct nir_shader * nir,struct gl_program * prog,struct pipe_screen * pscreen) argument
791 nir_shader *nir = shader->Program->nir; local in function:st_link_nir
855 st_nir_assign_varying_locations(struct st_context * st,nir_shader * nir) argument
899 st_nir_lower_samplers(struct pipe_screen * screen,nir_shader * nir,struct gl_shader_program * shader_program,struct gl_program * prog) argument
918 st_finalize_nir(struct st_context * st,struct gl_program * prog,struct gl_shader_program * shader_program,nir_shader * nir) argument
[all...]
H A Dst_nir_builtins.c27 #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_copie
30 st_nir_finish_builtin_shader(struct st_context * st,nir_shader * nir,const char * name) argument
[all...]
H A Dst_nir.h40 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/
H A Dvk_shader_module.h38 struct nir_shader *nir; member in struct:vk_shader_module
51 .nir = _nir, \
56 .nir = _nir, \
/xsrc/external/mit/MesaLib.old/dist/src/amd/common/
H A Dac_nir_to_llvm.h48 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/panfrost/bifrost/
H A Dcmdline.c92 sort_varyings(nir_shader *nir, nir_variable_mode mode) argument
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) argument
106 nir_foreach_variable_with_modes (var, nir, mode) {
120 nir_shader *nir[MESA_SHADER_COMPUTE + 1]; local in function:compile_shader
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[
[all...]
/xsrc/external/mit/MesaLib/dist/src/intel/compiler/
H A Dbrw_nir.h28 #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...]
/xsrc/external/mit/MesaLib/dist/src/asahi/compiler/
H A Dcmdline.c60 sort_varyings(nir_shader *nir, nir_variable_mode mode) argument
64 nir_foreach_variable_with_modes_safe (var, nir, mode) {
68 exec_list_append(&nir->variables, &new_list);
72 fixup_varying_slots(nir_shader *nir, nir_variable_mode mode) argument
74 nir_foreach_variable_with_modes (var, nir, mode) {
88 nir_shader *nir[2]; local in function:compile_shader
110 nir[i] = glsl_to_nir(&local_ctx, prog, shader_types[i], &agx_nir_options);
113 nir_assign_var_locations(nir[i], nir_var_shader_in, &nir[i]->num_inputs,
115 sort_varyings(nir[
[all...]

Completed in 16 milliseconds

1234567891011>>