Home
last modified time | relevance | path

Searched refs:nir (Results 1 – 25 of 110) sorted by relevance

12345

/external/mesa3d/src/compiler/nir/
Dnir_sweep.c41 static void sweep_cf_node(nir_shader *nir, nir_cf_node *cf_node);
44 sweep_src_indirect(nir_src *src, void *nir) in sweep_src_indirect() argument
47 ralloc_steal(nir, src->reg.indirect); in sweep_src_indirect()
53 sweep_dest_indirect(nir_dest *dest, void *nir) in sweep_dest_indirect() argument
56 ralloc_steal(nir, dest->reg.indirect); in sweep_dest_indirect()
62 sweep_block(nir_shader *nir, nir_block *block) in sweep_block() argument
64 ralloc_steal(nir, block); in sweep_block()
67 ralloc_steal(nir, instr); in sweep_block()
69 nir_foreach_src(instr, sweep_src_indirect, nir); in sweep_block()
70 nir_foreach_dest(instr, sweep_dest_indirect, nir); in sweep_block()
[all …]
Dnir_lower_clip_cull_distance_arrays.c41 get_unwrapped_array_length(nir_shader *nir, nir_variable *var) in get_unwrapped_array_length() argument
51 if (nir_is_per_vertex_io(var, nir->stage)) in get_unwrapped_array_length()
125 combine_clip_cull(nir_shader *nir, in combine_clip_cull() argument
140 const unsigned clip_array_size = get_unwrapped_array_length(nir, clip); in combine_clip_cull()
141 const unsigned cull_array_size = get_unwrapped_array_length(nir, cull); in combine_clip_cull()
144 nir->info->clip_distance_array_size = clip_array_size; in combine_clip_cull()
145 nir->info->cull_distance_array_size = cull_array_size; in combine_clip_cull()
160 update_type(clip, nir->stage, clip_array_size + cull_array_size); in combine_clip_cull()
163 nir_foreach_function(function, nir) { in combine_clip_cull()
181 nir_lower_clip_cull_distance_arrays(nir_shader *nir) in nir_lower_clip_cull_distance_arrays() argument
[all …]
/external/mesa3d/src/compiler/
DMakefile.sources172 nir/nir_builder_opcodes.h \
173 nir/nir_constant_expressions.c \
174 nir/nir_opcodes.c \
175 nir/nir_opcodes.h \
176 nir/nir_opt_algebraic.c
179 nir/nir.c \
180 nir/nir.h \
181 nir/nir_array.h \
182 nir/nir_builder.h \
183 nir/nir_clone.c \
[all …]
DAndroid.nir.gen.mk36 $(intermediates)/nir \
37 $(MESA_TOP)/src/compiler/nir
40 $(intermediates)/nir \
41 $(MESA_TOP)/src/compiler/nir
48 nir/nir_opcodes.h \
49 nir/nir_builder_opcodes.h)
51 nir_builder_opcodes_gen := $(LOCAL_PATH)/nir/nir_builder_opcodes_h.py
53 $(LOCAL_PATH)/nir/nir_opcodes.py \
54 $(LOCAL_PATH)/nir/nir_builder_opcodes_h.py
56 $(intermediates)/nir/nir_builder_opcodes.h: $(prebuilt_intermediates)/nir/nir_builder_opcodes.h
[all …]
DMakefile.nir.am24 noinst_LTLIBRARIES += nir/libnir.la
34 nir/nir_builder_opcodes.h: nir/nir_opcodes.py nir/nir_builder_opcodes_h.py
36 $(PYTHON_GEN) $(srcdir)/nir/nir_builder_opcodes_h.py > $@ || ($(RM) $@; false)
38 nir/nir_constant_expressions.c: nir/nir_opcodes.py nir/nir_constant_expressions.py
40 $(PYTHON_GEN) $(srcdir)/nir/nir_constant_expressions.py > $@ || ($(RM) $@; false)
42 nir/nir_opcodes.h: nir/nir_opcodes.py nir/nir_opcodes_h.py
44 $(PYTHON_GEN) $(srcdir)/nir/nir_opcodes_h.py > $@ || ($(RM) $@; false)
46 nir/nir_opcodes.c: nir/nir_opcodes.py nir/nir_opcodes_c.py
48 $(PYTHON_GEN) $(srcdir)/nir/nir_opcodes_c.py > $@ || ($(RM) $@; false)
50 nir/nir_opt_algebraic.c: nir/nir_opt_algebraic.py nir/nir_algebraic.py
[all …]
DSConscript.nir18 '#src/compiler/nir',
23 env.Prepend(CPPPATH = [Dir('.').abspath, Dir('nir').abspath])
25 # nir generated sources
28 target = 'nir/nir_builder_opcodes.h',
29 script = 'nir/nir_builder_opcodes_h.py',
35 target = 'nir/nir_constant_expressions.c',
36 script = 'nir/nir_constant_expressions.py',
42 target = 'nir/nir_opcodes.h',
43 script = 'nir/nir_opcodes_h.py',
49 target = 'nir/nir_opcodes.c',
[all …]
DMakefile.am34 -I$(top_builddir)/src/compiler/nir \
35 -I$(top_srcdir)/src/compiler/nir \
64 include Makefile.nir.am
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_nir.c85 add_const_offset_to_base(nir_shader *nir, nir_variable_mode mode) in add_const_offset_to_base() argument
87 nir_foreach_function(f, nir) { in add_const_offset_to_base()
255 brw_nir_lower_vs_inputs(nir_shader *nir, in brw_nir_lower_vs_inputs() argument
261 foreach_list_typed(nir_variable, var, node, &nir->inputs) { in brw_nir_lower_vs_inputs()
269 nir_lower_io(nir, nir_var_shader_in, type_size_vec4, 0); in brw_nir_lower_vs_inputs()
272 nir_opt_constant_folding(nir); in brw_nir_lower_vs_inputs()
274 add_const_offset_to_base(nir, nir_var_shader_in); in brw_nir_lower_vs_inputs()
276 brw_nir_apply_attribute_workarounds(nir, use_legacy_snorm_formula, in brw_nir_lower_vs_inputs()
282 nir_foreach_function(function, nir) { in brw_nir_lower_vs_inputs()
285 remap_vs_attrs(block, nir->info); in brw_nir_lower_vs_inputs()
[all …]
Dbrw_nir.h92 void brw_nir_analyze_boolean_resolves(nir_shader *nir);
95 nir_shader *nir);
97 bool brw_nir_lower_intrinsics(nir_shader *nir,
99 void brw_nir_lower_vs_inputs(nir_shader *nir,
103 void brw_nir_lower_vue_inputs(nir_shader *nir, bool is_scalar,
105 void brw_nir_lower_tes_inputs(nir_shader *nir, const struct brw_vue_map *vue);
106 void brw_nir_lower_fs_inputs(nir_shader *nir,
109 void brw_nir_lower_vue_outputs(nir_shader *nir, bool is_scalar);
110 void brw_nir_lower_tcs_outputs(nir_shader *nir, const struct brw_vue_map *vue,
112 void brw_nir_lower_fs_outputs(nir_shader *nir);
[all …]
Dbrw_nir_intrinsics.c28 nir_shader *nir; member
43 nir_shader *nir = state->nir; in read_thread_local_id() local
44 const unsigned *sizes = nir->info->cs.local_size; in read_thread_local_id()
58 nir_intrinsic_instr_create(nir, nir_intrinsic_load_uniform); in read_thread_local_id()
74 nir_shader *nir = state->nir; in lower_cs_intrinsics_convert_block() local
87 assert(nir->stage == MESA_SHADER_COMPUTE); in lower_cs_intrinsics_convert_block()
100 assert(nir->stage == MESA_SHADER_COMPUTE); in lower_cs_intrinsics_convert_block()
114 unsigned *size = nir->info->cs.local_size; in lower_cs_intrinsics_convert_block()
159 brw_nir_lower_intrinsics(nir_shader *nir, struct brw_stage_prog_data *prog_data) in brw_nir_lower_intrinsics() argument
162 if (nir->stage != MESA_SHADER_COMPUTE) in brw_nir_lower_intrinsics()
[all …]
Dbrw_vec4_tcs.cpp40 const nir_shader *nir, in vec4_tcs_visitor() argument
45 nir, mem_ctx, false, shader_time_index), in vec4_tcs_visitor()
97 if (nir->info->tess.tcs_vertices_out % 2) { in emit_prolog()
99 brw_imm_ud(nir->info->tess.tcs_vertices_out), in emit_prolog()
114 if (nir->info->tess.tcs_vertices_out % 2) { in emit_thread_end()
403 nir_shader *nir = nir_shader_clone(mem_ctx, src_shader); in brw_compile_tcs() local
404 nir->info->outputs_written = key->outputs_written; in brw_compile_tcs()
405 nir->info->patch_outputs_written = key->patch_outputs_written; in brw_compile_tcs()
408 brw_compute_vue_map(devinfo, &input_vue_map, nir->info->inputs_read, in brw_compile_tcs()
409 nir->info->separate_shader); in brw_compile_tcs()
[all …]
Dbrw_tcs.c46 nir_shader *nir = b.shader; in create_passthrough_tcs() local
54 nir->info->inputs_read = key->outputs_written & in create_passthrough_tcs()
56 nir->info->outputs_written = key->outputs_written; in create_passthrough_tcs()
57 nir->info->tess.tcs_vertices_out = key->input_vertices; in create_passthrough_tcs()
58 nir->info->name = ralloc_strdup(nir, "passthrough"); in create_passthrough_tcs()
59 nir->num_uniforms = 8 * sizeof(uint32_t); in create_passthrough_tcs()
61 var = nir_variable_create(nir, nir_var_uniform, glsl_vec4_type(), "hdr_0"); in create_passthrough_tcs()
63 var = nir_variable_create(nir, nir_var_uniform, glsl_vec4_type(), "hdr_1"); in create_passthrough_tcs()
68 load = nir_intrinsic_instr_create(nir, nir_intrinsic_load_uniform); in create_passthrough_tcs()
75 store = nir_intrinsic_instr_create(nir, nir_intrinsic_store_output); in create_passthrough_tcs()
[all …]
Dbrw_program.c51 brw_nir_lower_uniforms(nir_shader *nir, bool is_scalar) in brw_nir_lower_uniforms() argument
54 nir_assign_var_locations(&nir->uniforms, &nir->num_uniforms, in brw_nir_lower_uniforms()
56 nir_lower_io(nir, nir_var_uniform, type_size_scalar_bytes, 0); in brw_nir_lower_uniforms()
58 nir_assign_var_locations(&nir->uniforms, &nir->num_uniforms, in brw_nir_lower_uniforms()
60 nir_lower_io(nir, nir_var_uniform, type_size_vec4_bytes, 0); in brw_nir_lower_uniforms()
75 nir_shader *nir; in brw_create_nir() local
79 nir = glsl_to_nir(shader_prog, stage, options); in brw_create_nir()
80 nir_remove_dead_variables(nir, nir_var_shader_in | nir_var_shader_out); in brw_create_nir()
81 nir_lower_returns(nir); in brw_create_nir()
82 nir_validate_shader(nir); in brw_create_nir()
[all …]
Dbrw_shader.cpp659 nir(shader), in backend_shader()
1178 if (prog->nir->info->uses_texture_gather) { in brw_assign_common_binding_table_offsets()
1315 nir_shader *nir = nir_shader_clone(mem_ctx, src_shader); in brw_compile_tes() local
1316 nir->info->inputs_read = key->inputs_read; in brw_compile_tes()
1317 nir->info->patch_inputs_read = key->patch_inputs_read; in brw_compile_tes()
1319 nir = brw_nir_apply_sampler_key(nir, compiler, &key->tex, is_scalar); in brw_compile_tes()
1320 brw_nir_lower_tes_inputs(nir, input_vue_map); in brw_compile_tes()
1321 brw_nir_lower_vue_outputs(nir, is_scalar); in brw_compile_tes()
1322 nir = brw_postprocess_nir(nir, compiler, is_scalar); in brw_compile_tes()
1325 nir->info->outputs_written, in brw_compile_tes()
[all …]
Dbrw_tes.c74 nir_shader *nir = tep->program.nir; in brw_codegen_tes_prog() local
92 int param_count = nir->num_uniforms / 4; in brw_codegen_tes_prog()
104 brw_nir_setup_glsl_uniforms(nir, &tep->program, &prog_data.base.base, in brw_codegen_tes_prog()
125 nir, &tep->program, st_index, &program_size, &error_str); in brw_codegen_tes_prog()
238 key.inputs_read = prog->nir->info->inputs_read; in brw_tes_precompile()
239 key.patch_inputs_read = prog->nir->info->patch_inputs_read; in brw_tes_precompile()
244 key.inputs_read |= tcp->nir->info->outputs_written & in brw_tes_precompile()
246 key.patch_inputs_read |= tcp->nir->info->patch_outputs_written; in brw_tes_precompile()
DMakefile.am38 -I$(top_builddir)/src/compiler/nir \
39 -I$(top_srcdir)/src/compiler/nir \
49 brw_nir_trig_workarounds.c: brw_nir_trig_workarounds.py $(top_srcdir)/src/compiler/nir/nir_algebrai…
51 …$(AM_V_GEN) PYTHONPATH=$(top_srcdir)/src/compiler/nir $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/brw_nir…
102 $(top_builddir)/src/compiler/nir/libnir.la \
Dbrw_vs.c158 int param_count = vp->program.nir->num_uniforms / 4; in brw_codegen_vs_prog()
177 brw_nir_setup_glsl_uniforms(vp->program.nir, &vp->program, in brw_codegen_vs_prog()
181 brw_nir_setup_arb_uniforms(vp->program.nir, &vp->program, in brw_codegen_vs_prog()
196 vp->program.nir->info->separate_shader); in brw_codegen_vs_prog()
223 vp->program.nir, in brw_codegen_vs_prog()
313 if (prog->nir->info->outputs_written & in brw_vs_populate_key()
367 (prog->nir->info->outputs_written & in brw_vs_precompile()
/external/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_nir.cpp76 st_nir_assign_vs_in_locations(struct gl_program *prog, nir_shader *nir) in st_nir_assign_vs_in_locations() argument
95 nir->num_inputs = 0; in st_nir_assign_vs_in_locations()
96 nir_foreach_variable_safe(var, &nir->inputs) { in st_nir_assign_vs_in_locations()
102 nir->num_inputs++; in st_nir_assign_vs_in_locations()
111 exec_list_push_tail(&nir->globals, &var->node); in st_nir_assign_vs_in_locations()
223 nir_shader *nir; in st_glsl_to_nir() local
231 if (prog->nir) in st_glsl_to_nir()
232 return prog->nir; in st_glsl_to_nir()
234 nir = glsl_to_nir(shader_program, stage, options); in st_glsl_to_nir()
235 prog->nir = nir; in st_glsl_to_nir()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_cmdline.c75 nir_shader *nir = glsl_to_nir(prog, stage, ir3_get_compiler_options()); in load_glsl() local
82 NIR_PASS_V(nir, nir_lower_io_to_temporaries, in load_glsl()
83 nir_shader_get_entrypoint(nir), in load_glsl()
85 NIR_PASS_V(nir, nir_lower_global_vars_to_local); in load_glsl()
86 NIR_PASS_V(nir, nir_split_var_copies); in load_glsl()
87 NIR_PASS_V(nir, nir_lower_var_copies); in load_glsl()
89 NIR_PASS_V(nir, nir_split_var_copies); in load_glsl()
90 NIR_PASS_V(nir, nir_lower_var_copies); in load_glsl()
91 NIR_PASS_V(nir, nir_lower_io_types); in load_glsl()
95 NIR_PASS_V(nir, nir_lower_system_values); in load_glsl()
[all …]
Dir3_nir.c77 #define OPT(nir, pass, ...) ({ \ argument
79 NIR_PASS(this_progress, nir, pass, ##__VA_ARGS__); \
83 #define OPT_V(nir, pass, ...) NIR_PASS_V(nir, pass, ##__VA_ARGS__) argument
/external/mesa3d/src/intel/blorp/
Dblorp.c160 struct nir_shader *nir, in blorp_compile_fs() argument
168 nir->options = in blorp_compile_fs()
173 assert(exec_list_is_empty(&nir->uniforms)); in blorp_compile_fs()
181 nir = brw_preprocess_nir(compiler, nir); in blorp_compile_fs()
182 nir_remove_dead_variables(nir, nir_var_shader_in); in blorp_compile_fs()
183 nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir)); in blorp_compile_fs()
187 wm_prog_data, nir, NULL, -1, -1, false, use_repclear, in blorp_compile_fs()
195 struct nir_shader *nir, in blorp_compile_vs() argument
201 nir->options = in blorp_compile_vs()
204 nir = brw_preprocess_nir(compiler, nir); in blorp_compile_vs()
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_pipeline.c136 nir_shader *nir = entry_point->shader; in anv_shader_compile_to_nir() local
137 assert(nir->stage == stage); in anv_shader_compile_to_nir()
138 nir_validate_shader(nir); in anv_shader_compile_to_nir()
146 NIR_PASS_V(nir, nir_lower_constant_initializers, nir_var_local); in anv_shader_compile_to_nir()
147 NIR_PASS_V(nir, nir_lower_returns); in anv_shader_compile_to_nir()
148 NIR_PASS_V(nir, nir_inline_functions); in anv_shader_compile_to_nir()
151 foreach_list_typed_safe(nir_function, func, node, &nir->functions) { in anv_shader_compile_to_nir()
155 assert(exec_list_length(&nir->functions) == 1); in anv_shader_compile_to_nir()
158 NIR_PASS_V(nir, nir_remove_dead_variables, in anv_shader_compile_to_nir()
162 NIR_PASS_V(nir, nir_lower_wpos_center); in anv_shader_compile_to_nir()
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_pipeline.c82 module->nir = NULL; in radv_CreateShaderModule()
163 nir_shader *nir; in radv_shader_compile_to_nir() local
165 if (module->nir) { in radv_shader_compile_to_nir()
169 nir = module->nir; in radv_shader_compile_to_nir()
170 nir->options = &nir_options; in radv_shader_compile_to_nir()
171 nir_validate_shader(nir); in radv_shader_compile_to_nir()
173 assert(exec_list_length(&nir->functions) == 1); in radv_shader_compile_to_nir()
174 struct exec_node *node = exec_list_get_head(&nir->functions); in radv_shader_compile_to_nir()
202 nir = entry_point->shader; in radv_shader_compile_to_nir()
203 assert(nir->stage == stage); in radv_shader_compile_to_nir()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/
DMakefile.am7 -I$(top_builddir)/src/compiler/nir \
8 -I$(top_srcdir)/src/compiler/nir \
13 ir3/ir3_nir_trig.c: ir3/ir3_nir_trig.py $(top_srcdir)/src/compiler/nir/nir_algebraic.py
15 …$(AM_V_GEN) PYTHONPATH=$(top_srcdir)/src/compiler/nir $(PYTHON2) $(PYTHON_FLAGS) $(srcdir)/ir3/ir3…
42 $(top_builddir)/src/compiler/nir/libnir.la \
/external/mesa3d/doxygen/
Dnir.doxy12 INPUT = ../src/compiler/nir
26 HTML_OUTPUT = nir
50 GENERATE_TAGFILE = nir.tag

12345