Home
last modified time | relevance | path

Searched refs:nir_variable (Results 1 – 25 of 81) sorted by relevance

1234

/external/mesa3d/src/compiler/nir/
Dnir_lower_io_arrays_to_elements.c35 get_io_offset(nir_builder *b, nir_deref_var *deref, nir_variable *var, in get_io_offset()
77 static nir_variable **
78 get_array_elements(struct hash_table *ht, nir_variable *var, in get_array_elements()
81 nir_variable **elements; in get_array_elements()
96 elements = (nir_variable **) calloc(num_elements, sizeof(nir_variable *)); in get_array_elements()
99 elements = (nir_variable **) entry->data; in get_array_elements()
127 lower_array(nir_builder *b, nir_intrinsic_instr *intr, nir_variable *var, in lower_array()
132 nir_variable **elements = in lower_array()
139 nir_variable *element = elements[elements_index]; in lower_array()
198 deref_has_indirect(nir_builder *b, nir_variable *var, nir_deref_var *deref) in deref_has_indirect()
[all …]
Dnir_lower_io_to_temporaries.c49 nir_variable *newv = exec_node_data(nir_variable, new_node, node); in emit_copies()
50 nir_variable *temp = exec_node_data(nir_variable, old_node, node); in emit_copies()
124 static nir_variable *
125 create_shadow_temp(struct lower_io_state *state, nir_variable *var) in create_shadow_temp()
127 nir_variable *nvar = ralloc(state->shader, nir_variable); in create_shadow_temp()
131 nir_variable *temp = var; in create_shadow_temp()
175 nir_variable *output = create_shadow_temp(&state, var); in nir_lower_io_to_temporaries()
181 nir_variable *input = create_shadow_temp(&state, var); in nir_lower_io_to_temporaries()
Dnir_lower_io_to_scalar.c131 static nir_variable **
132 get_channel_variables(struct hash_table *ht, nir_variable *var) in get_channel_variables()
134 nir_variable **chan_vars; in get_channel_variables()
137 chan_vars = (nir_variable **) calloc(4, sizeof(nir_variable *)); in get_channel_variables()
140 chan_vars = (nir_variable **) entry->data; in get_channel_variables()
173 nir_variable *var, struct hash_table *split_inputs, in lower_load_to_scalar_early()
182 nir_variable **chan_vars; in lower_load_to_scalar_early()
190 nir_variable *chan_var = chan_vars[var->data.location_frac + i]; in lower_load_to_scalar_early()
233 nir_variable *var, in lower_store_output_to_scalar_early()
240 nir_variable **chan_vars = get_channel_variables(split_outputs, var); in lower_store_output_to_scalar_early()
[all …]
Dnir_sweep.c125 steal_list(nir, nir_variable, &impl->locals); in sweep_impl()
161 steal_list(nir, nir_variable, &nir->uniforms); in nir_sweep()
162 steal_list(nir, nir_variable, &nir->inputs); in nir_sweep()
163 steal_list(nir, nir_variable, &nir->outputs); in nir_sweep()
164 steal_list(nir, nir_variable, &nir->shared); in nir_sweep()
165 steal_list(nir, nir_variable, &nir->globals); in nir_sweep()
166 steal_list(nir, nir_variable, &nir->system_values); in nir_sweep()
Dnir_lower_clip.c43 static nir_variable *
47 nir_variable *var = rzalloc(shader, nir_variable); in create_clipdist_var()
68 store_clipdist_output(nir_builder *b, nir_variable *out, nir_ssa_def **val) in store_clipdist_output()
83 load_clipdist_input(nir_builder *b, nir_variable *in, nir_ssa_def **val) in load_clipdist_input()
155 nir_ssa_def *cv, nir_variable **out) in lower_clip_vs()
206 nir_variable *out[2] = { NULL }; in nir_lower_clip_vs()
267 nir_variable **in) in lower_clip_fs()
304 nir_variable *in[2]; in nir_lower_clip_fs()
Dnir_lower_two_sided_color.c36 nir_variable *front; /* COLn */
37 nir_variable *back; /* BFCn */
48 static nir_variable *
52 nir_variable *var = rzalloc(shader, nir_variable); in create_input()
70 load_input(nir_builder *b, nir_variable *in) in load_input()
Dnir_lower_clip_cull_distance_arrays.c41 get_unwrapped_array_length(nir_shader *nir, nir_variable *var) in get_unwrapped_array_length()
63 update_type(nir_variable *var, gl_shader_stage stage, unsigned length) in update_type()
78 nir_variable *combined, in rewrite_references()
129 nir_variable *cull = NULL; in combine_clip_cull()
130 nir_variable *clip = NULL; in combine_clip_cull()
Dnir_lower_io_types.c38 static nir_variable *
39 get_new_var(struct lower_io_types_state *state, nir_variable *var, in get_new_var()
60 nir_variable *nvar = nir_variable_create(state->shader, var->data.mode, in get_new_var()
124 nir_variable *var = intr->variables[0]->var; in lower_io_types_block()
138 nir_variable *nvar = get_new_var(state, var, deref_type, off); in lower_io_types_block()
Dnir_remove_dead_variables.c71 nir_variable *var = instr->return_deref->var; in add_var_use_call()
76 nir_variable *var = instr->params[i]->var; in add_var_use_call()
85 nir_variable *var = instr->texture->var; in add_var_use_tex()
90 nir_variable *var = instr->sampler->var; in add_var_use_tex()
155 foreach_list_typed_safe(nir_variable, var, node, var_list) { in remove_dead_vars()
Dnir_clone.c122 static nir_variable *
123 remap_var(clone_state *state, const nir_variable *var) in remap_var()
129 nir_constant_clone(const nir_constant *c, nir_variable *nvar) in nir_constant_clone()
146 nir_variable *
147 nir_variable_clone(const nir_variable *var, nir_shader *shader) in nir_variable_clone()
149 nir_variable *nvar = rzalloc(shader, nir_variable); in nir_variable_clone()
167 static nir_variable *
168 clone_variable(clone_state *state, const nir_variable *var) in clone_variable()
170 nir_variable *nvar = nir_variable_clone(var, state->ns); in clone_variable()
182 foreach_list_typed(nir_variable, var, node, list) { in clone_var_list()
[all …]
Dnir_lower_drawpixels.c38 nir_variable *texcoord, *scale, *bias;
45 nir_variable *texcoord = NULL; in get_texcoord()
69 static nir_variable *
72 nir_variable *var = nir_variable_create(shader, in create_uniform()
216 nir_variable *var = dvar->var; in lower_drawpixels_block()
Dnir_lower_wpos_ytransform.c44 nir_variable *transform;
54 nir_variable *var = nir_variable_create(state->shader, in get_transform()
84 nir_variable *fragcoord = intr->variables[0]->var; in emit_wpos_adjustment()
150 nir_variable *fragcoord = intr->variables[0]->var; in lower_fragcoord()
303 nir_variable *var = dvar->var; in lower_wpos_ytransform_block()
Dnir.h171 typedef struct nir_variable { struct
364 } nir_variable; argument
367 foreach_list_typed(nir_variable, var, node, var_list)
370 foreach_list_typed_safe(nir_variable, var, node, var_list)
373 nir_variable_is_global(const nir_variable *var) in nir_variable_is_global()
887 nir_variable *var;
1683 nir_variable **params;
1686 nir_variable *return_var;
1970 void nir_shader_add_variable(nir_shader *shader, nir_variable *var);
1973 nir_function_impl_add_variable(nir_function_impl *impl, nir_variable *var) in nir_function_impl_add_variable()
[all …]
Dnir_gather_info.c28 set_io_mask(nir_shader *shader, nir_variable *var, int offset, int len, in set_io_mask()
88 mark_whole_variable(nir_shader *shader, nir_variable *var, bool is_output_read) in mark_whole_variable()
139 nir_variable *var = deref->var; in try_mask_partial_io()
218 nir_variable *var = instr->variables[0]->var; in gather_intrinsic_info()
Dnir_lower_global_vars_to_local.c47 nir_variable *var = intrin->variables[i]->var; in mark_global_var_uses_block()
88 nir_variable *var = (void *)entry->key; in nir_lower_global_vars_to_local()
Dnir_lower_io.c71 nir_is_per_vertex_io(const nir_variable *var, gl_shader_stage stage) in nir_is_per_vertex_io()
163 nir_variable *var = intrin->variables[0]->var; in lower_load()
235 nir_variable *var = intrin->variables[0]->var; in lower_store()
272 nir_variable *var = intrin->variables[0]->var; in lower_atomic()
311 nir_variable *var = intrin->variables[0]->var; in lower_interpolate_at()
401 nir_variable *var = intrin->variables[0]->var; in nir_lower_io_block()
Dnir_lower_bitmap.c55 static nir_variable *
58 nir_variable *texcoord = NULL; in get_texcoord()
Dnir_lower_clamp_color_outputs.c34 is_color_output(lower_state *state, nir_variable *out) in is_color_output()
65 nir_variable *out = NULL; in lower_intrinsic()
Dnir_inline_functions.c88 lower_param_to_local(nir_variable *param, nir_function_impl *impl, bool write) in lower_param_to_local()
198 nir_variable *param = callee_copy->params[i]; in inline_functions_block()
222 nir_variable *param = callee_copy->params[i]; in inline_functions_block()
/external/mesa3d/src/mesa/state_tracker/
Dst_nir_lower_builtin.c98 static nir_variable *
139 nir_variable *var = in get_variable()
166 nir_variable *var = intrin->variables[0]->var; in lower_builtin_block()
195 nir_variable *new_var = in lower_builtin_block()
/external/mesa3d/src/intel/blorp/
Dblorp_clear.c64 nir_variable *v_color = in blorp_params_get_clear_kernel()
67 nir_variable *frag_color = nir_variable_create(b.shader, nir_var_shader_out, in blorp_params_get_clear_kernel()
128 nir_variable *a_header = nir_variable_create(b.shader, nir_var_shader_in, in blorp_params_get_layer_offset_vs()
132 nir_variable *v_layer = nir_variable_create(b.shader, nir_var_shader_out, in blorp_params_get_layer_offset_vs()
143 nir_variable *a_vertex = nir_variable_create(b.shader, nir_var_shader_in, in blorp_params_get_layer_offset_vs()
147 nir_variable *v_pos = nir_variable_create(b.shader, nir_var_shader_out, in blorp_params_get_layer_offset_vs()
155 nir_variable *a_in = nir_variable_create(b.shader, nir_var_shader_in, in blorp_params_get_layer_offset_vs()
159 nir_variable *v_out = nir_variable_create(b.shader, nir_var_shader_out, in blorp_params_get_layer_offset_vs()
808 nir_variable *v_color = in blorp_params_get_mcs_partial_resolve_kernel()
811 nir_variable *frag_color = in blorp_params_get_mcs_partial_resolve_kernel()
/external/mesa3d/src/amd/common/
Dac_shader_abi.h29 struct nir_variable;
97 const struct nir_variable *var,
Dac_shader_info.c27 static void mark_sampler_desc(const nir_variable *var, in mark_sampler_desc()
141 gather_info_input_decl(const nir_shader *nir, const nir_variable *var, in gather_info_input_decl()
/external/mesa3d/src/intel/vulkan/
Danv_nir_lower_multiview.c129 nir_variable *idx_var = in build_view_index()
213 nir_variable *view_index_out = in anv_nir_lower_multiview()
219 nir_variable *layer_id_out = in anv_nir_lower_multiview()
/external/mesa3d/src/amd/vulkan/
Dradv_meta_blit.c43 nir_variable *pos_out = nir_variable_create(b.shader, nir_var_shader_out, in build_nir_vertex_shader()
47 nir_variable *tex_pos_out = nir_variable_create(b.shader, nir_var_shader_out, in build_nir_vertex_shader()
114 nir_variable *tex_pos_in = nir_variable_create(b.shader, nir_var_shader_in, in build_nir_copy_fragment_shader()
129 nir_variable *sampler = nir_variable_create(b.shader, nir_var_uniform, in build_nir_copy_fragment_shader()
148 nir_variable *color_out = nir_variable_create(b.shader, nir_var_shader_out, in build_nir_copy_fragment_shader()
168 nir_variable *tex_pos_in = nir_variable_create(b.shader, nir_var_shader_in, in build_nir_copy_fragment_shader_depth()
183 nir_variable *sampler = nir_variable_create(b.shader, nir_var_uniform, in build_nir_copy_fragment_shader_depth()
202 nir_variable *color_out = nir_variable_create(b.shader, nir_var_shader_out, in build_nir_copy_fragment_shader_depth()
222 nir_variable *tex_pos_in = nir_variable_create(b.shader, nir_var_shader_in, in build_nir_copy_fragment_shader_stencil()
237 nir_variable *sampler = nir_variable_create(b.shader, nir_var_uniform, in build_nir_copy_fragment_shader_stencil()
[all …]

1234