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

1234

/external/mesa3d/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);
67 ralloc_steal(nir, instr);
69 nir_foreach_src(instr, sweep_src_indirect, nir);
75 sweep_if(nir_shader *nir, nir_if *iff) argument
89 sweep_loop(nir_shader *nir, nir_loop *loop) argument
99 sweep_cf_node(nir_shader *nir, nir_cf_node *cf_node) argument
117 sweep_impl(nir_shader *nir, nir_function_impl *impl) argument
139 sweep_function(nir_shader *nir, nir_function *f) argument
149 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->stage))
125 combine_clip_cull(nir_shader *nir, argument
140 const unsigned clip_array_size = get_unwrapped_array_length(nir, clip);
141 const unsigned cull_array_size = get_unwrapped_array_length(nir, cull);
144 nir->info->clip_distance_array_size = clip_array_size;
145 nir->info->cull_distance_array_size = cull_array_size;
160 update_type(clip, nir->stage, clip_array_size + cull_array_size);
163 nir_foreach_function(function, nir) {
181 nir_lower_clip_cull_distance_arrays(nir_shader *nir) argument
[all...]
/external/mesa3d/src/compiler/
H A 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_opcode
[all...]
H A 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_opcode
[all...]
H A 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/
H A Dbrw_nir.h27 #include "compiler/nir/nir.h"
92 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, boo
[all...]
H A Dbrw_nir.c27 #include "compiler/nir/nir_builder.h"
85 add_const_offset_to_base(nir_shader *nir, nir_variable_mode mode) argument
87 nir_foreach_function(f, nir) {
255 brw_nir_lower_vs_inputs(nir_shader *nir, argument
261 foreach_list_typed(nir_variable, var, node, &nir->inputs) {
269 nir_lower_io(nir, nir_var_shader_in, type_size_vec4, 0);
272 nir_opt_constant_folding(nir);
274 add_const_offset_to_base(nir, nir_var_shader_in);
276 brw_nir_apply_attribute_workarounds(nir, use_legacy_snorm_formula,
282 nir_foreach_function(function, nir) {
293 brw_nir_lower_vue_inputs(nir_shader *nir, bool is_scalar, const struct brw_vue_map *vue_map) argument
320 brw_nir_lower_tes_inputs(nir_shader *nir, const struct brw_vue_map *vue_map) argument
346 brw_nir_lower_fs_inputs(nir_shader *nir, const struct gen_device_info *devinfo, const struct brw_wm_prog_key *key) argument
390 brw_nir_lower_vue_outputs(nir_shader *nir, bool is_scalar) argument
401 brw_nir_lower_tcs_outputs(nir_shader *nir, const struct brw_vue_map *vue_map, GLenum tes_primitive_mode) argument
427 brw_nir_lower_fs_outputs(nir_shader *nir) argument
439 brw_nir_lower_cs_shared(nir_shader *nir) argument
457 nir_optimize(nir_shader *nir, const struct brw_compiler *compiler, bool is_scalar) argument
530 brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir) argument
597 brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, bool is_scalar) argument
662 brw_nir_apply_sampler_key(nir_shader *nir, const struct brw_compiler *compiler, const struct brw_sampler_prog_key_data *key_tex, bool is_scalar) argument
[all...]
H A Dbrw_nir_intrinsics.c25 #include "compiler/nir/nir_builder.h"
28 nir_shader *nir; member in struct:lower_intrinsics_state
43 nir_shader *nir = state->nir; local
44 const unsigned *sizes = nir->info->cs.local_size;
58 nir_intrinsic_instr_create(nir, nir_intrinsic_load_uniform);
74 nir_shader *nir = state->nir; local
87 assert(nir->stage == MESA_SHADER_COMPUTE);
100 assert(nir
159 brw_nir_lower_intrinsics(nir_shader *nir, struct brw_stage_prog_data *prog_data) argument
[all...]
H A DAndroid.gen.mk29 $(MESA_TOP)/src/compiler/nir/nir_algebraic.py
35 $(hide) PYTHONPATH=$(MESA_TOP)/src/compiler/nir $(MESA_PYTHON2) $< > $@
H A Dbrw_vec4_tcs.cpp40 const nir_shader *nir,
45 nir, mem_ctx, false, shader_time_index),
97 if (nir->info->tess.tcs_vertices_out % 2) {
99 brw_imm_ud(nir->info->tess.tcs_vertices_out),
114 if (nir->info->tess.tcs_vertices_out % 2) {
403 nir_shader *nir = nir_shader_clone(mem_ctx, src_shader); local
404 nir->info->outputs_written = key->outputs_written;
405 nir->info->patch_outputs_written = key->patch_outputs_written;
408 brw_compute_vue_map(devinfo, &input_vue_map, nir->info->inputs_read,
409 nir
36 vec4_tcs_visitor(const struct brw_compiler *compiler, void *log_data, const struct brw_tcs_prog_key *key, struct brw_tcs_prog_data *prog_data, const nir_shader *nir, void *mem_ctx, int shader_time_index, const struct brw_vue_map *input_vue_map) argument
[all...]
H A Dbrw_tcs.c46 nir_shader *nir = b.shader; local
54 nir->info->inputs_read = key->outputs_written &
56 nir->info->outputs_written = key->outputs_written;
57 nir->info->tess.tcs_vertices_out = key->input_vertices;
58 nir->info->name = ralloc_strdup(nir, "passthrough");
59 nir->num_uniforms = 8 * sizeof(uint32_t);
61 var = nir_variable_create(nir, nir_var_uniform, glsl_vec4_type(), "hdr_0");
63 var = nir_variable_create(nir, nir_var_uniform, glsl_vec4_type(), "hdr_1");
68 load = nir_intrinsic_instr_create(nir, nir_intrinsic_load_unifor
162 nir_shader *nir; local
[all...]
H A Dbrw_program.c51 brw_nir_lower_uniforms(nir_shader *nir, bool is_scalar) argument
54 nir_assign_var_locations(&nir->uniforms, &nir->num_uniforms,
56 nir_lower_io(nir, nir_var_uniform, type_size_scalar_bytes, 0);
58 nir_assign_var_locations(&nir->uniforms, &nir->num_uniforms,
60 nir_lower_io(nir, nir_var_uniform, type_size_vec4_bytes, 0);
75 nir_shader *nir; local
79 nir = glsl_to_nir(shader_prog, stage, options);
80 nir_remove_dead_variables(nir, nir_var_shader_i
[all...]
H A Dbrw_tes.c74 nir_shader *nir = tep->program.nir; local
92 int param_count = nir->num_uniforms / 4;
104 brw_nir_setup_glsl_uniforms(nir, &tep->program, &prog_data.base.base,
125 nir, &tep->program, st_index, &program_size, &error_str);
238 key.inputs_read = prog->nir->info->inputs_read;
239 key.patch_inputs_read = prog->nir->info->patch_inputs_read;
244 key.inputs_read |= tcp->nir->info->outputs_written &
246 key.patch_inputs_read |= tcp->nir->info->patch_outputs_written;
H A Dbrw_vec4_tes.h45 const nir_shader *nir,
H A Dbrw_nir_tcs_workarounds.c24 #include "compiler/nir/nir_builder.h"
124 brw_nir_apply_tcs_quads_workaround(nir_shader *nir) argument
126 assert(nir->stage == MESA_SHADER_TESS_CTRL);
128 nir_function_impl *impl = nir_shader_get_entrypoint(nir);
H A Dbrw_shader.cpp659 nir(shader),
1178 if (prog->nir->info->uses_texture_gather) {
1315 nir_shader *nir = nir_shader_clone(mem_ctx, src_shader);
1316 nir->info->inputs_read = key->inputs_read;
1317 nir->info->patch_inputs_read = key->patch_inputs_read;
1319 nir = brw_nir_apply_sampler_key(nir, compiler, &key->tex, is_scalar);
1320 brw_nir_lower_tes_inputs(nir, input_vue_map);
1321 brw_nir_lower_vue_outputs(nir, is_scalar);
1322 nir
[all...]
H A Dbrw_vec4_tcs.h46 const nir_shader *nir,
/external/mesa3d/src/mesa/state_tracker/
H A Dst_glsl_to_nir.cpp44 #include "compiler/nir/nir.h"
51 * may need to fix up varying slots so the glsl->nir path is aligned
52 * with the anything->tgsi->nir path.
76 st_nir_assign_vs_in_locations(struct gl_program *prog, nir_shader *nir) argument
95 nir->num_inputs = 0;
96 nir_foreach_variable_safe(var, &nir->inputs) {
102 nir->num_inputs++;
111 exec_list_push_tail(&nir->globals, &var->node);
223 nir_shader *nir;
[all...]
H A Dst_nir.h44 void st_finalize_nir(struct st_context *st, struct gl_program *prog, struct nir_shader *nir);
/external/mesa3d/src/gallium/drivers/freedreno/
H A DAndroid.gen.mk29 $(MESA_TOP)/src/compiler/nir/nir_algebraic.py
35 $(hide) PYTHONPATH=$(MESA_TOP)/src/compiler/nir $(MESA_PYTHON2) $< > $@
/external/mesa3d/src/gallium/drivers/freedreno/ir3/
H A Dir3_cmdline.c75 nir_shader *nir = glsl_to_nir(prog, stage, ir3_get_compiler_options()); local
82 NIR_PASS_V(nir, nir_lower_io_to_temporaries,
83 nir_shader_get_entrypoint(nir),
85 NIR_PASS_V(nir, nir_lower_global_vars_to_local);
86 NIR_PASS_V(nir, nir_split_var_copies);
87 NIR_PASS_V(nir, nir_lower_var_copies);
89 NIR_PASS_V(nir, nir_split_var_copies);
90 NIR_PASS_V(nir, nir_lower_var_copies);
91 NIR_PASS_V(nir, nir_lower_io_types);
95 NIR_PASS_V(nir, nir_lower_system_value
299 nir_shader *nir; local
[all...]
H A Dir3_nir.c36 #include "nir/tgsi_to_nir.h"
67 /* for given shader key, are any steps handled in nir? */
77 #define OPT(nir, pass, ...) ({ \
79 NIR_PASS(this_progress, nir, pass, ##__VA_ARGS__); \
83 #define OPT_V(nir, pass, ...) NIR_PASS_V(nir, pass, ##__VA_ARGS__)
/external/mesa3d/src/intel/blorp/
H A Dblorp.c160 struct nir_shader *nir,
168 nir->options =
173 assert(exec_list_is_empty(&nir->uniforms));
181 nir = brw_preprocess_nir(compiler, nir);
182 nir_remove_dead_variables(nir, nir_var_shader_in);
183 nir_shader_gather_info(nir, nir_shader_get_entrypoint(nir));
187 wm_prog_data, nir, NULL, -1, -1, false, use_repclear,
195 struct nir_shader *nir,
159 blorp_compile_fs(struct blorp_context *blorp, void *mem_ctx, struct nir_shader *nir, const struct brw_wm_prog_key *wm_key, bool use_repclear, struct brw_wm_prog_data *wm_prog_data, unsigned *program_size) argument
194 blorp_compile_vs(struct blorp_context *blorp, void *mem_ctx, struct nir_shader *nir, struct brw_vs_prog_data *vs_prog_data, unsigned *program_size) argument
[all...]
/external/mesa3d/src/intel/vulkan/
H A Danv_pipeline.c87 * we can't do that yet because we don't have the ability to copy nir.
136 nir_shader *nir = entry_point->shader; local
137 assert(nir->stage == stage);
138 nir_validate_shader(nir);
146 NIR_PASS_V(nir, nir_lower_constant_initializers, nir_var_local);
147 NIR_PASS_V(nir, nir_lower_returns);
148 NIR_PASS_V(nir, nir_inline_functions);
151 foreach_list_typed_safe(nir_function, func, node, &nir->functions) {
155 assert(exec_list_length(&nir->functions) == 1);
158 NIR_PASS_V(nir, nir_remove_dead_variable
318 nir_shader *nir = anv_shader_compile_to_nir(pipeline->device, local
462 nir_shader *nir = anv_pipeline_compile(pipeline, module, entrypoint, local
723 nir_shader *nir = anv_pipeline_compile(pipeline, module, entrypoint, local
800 nir_shader *nir = anv_pipeline_compile(pipeline, module, entrypoint, local
922 nir_shader *nir = anv_pipeline_compile(pipeline, module, entrypoint, local
[all...]
/external/mesa3d/doxygen/
H A DMakefile21 nir.doxy

Completed in 1551 milliseconds

1234