Home
last modified time | relevance | path

Searched refs:new_var (Results 1 – 25 of 30) sorted by relevance

12

/third_party/mesa3d/src/compiler/glsl/
Dlower_named_interface_blocks.cpp166 ir_variable *new_var; in run() local
170 new_var = in run()
177 new_var = in run()
182 new_var->data.location = iface_t->fields.structure[i].location; in run()
183 new_var->data.location_frac = in run()
186 new_var->data.explicit_location = (new_var->data.location >= 0); in run()
187 new_var->data.explicit_component = in run()
189 new_var->data.offset = iface_t->fields.structure[i].offset; in run()
190 new_var->data.explicit_xfb_offset = in run()
192 new_var->data.xfb_buffer = in run()
[all …]
Dlower_distance.cpp141 ir_variable **new_var; in visit() local
151 new_var = &new_distance_out_var; in visit()
156 new_var = &new_distance_in_var; in visit()
165 if (!(*new_var)) { in visit()
169 *new_var = ir->clone(ralloc_parent(ir), NULL); in visit()
170 (*new_var)->name = ralloc_strdup(*new_var, GLSL_CLIP_VAR_NAME); in visit()
171 (*new_var)->data.location = VARYING_SLOT_CLIP_DIST0; in visit()
185 (*new_var)->data.max_array_access = new_size - 1; in visit()
188 (*new_var)->type = glsl_type::get_array_instance(glsl_type::vec4_type, in visit()
202 (*new_var)->type = glsl_type::get_array_instance( in visit()
[all …]
Dopt_array_splitting.cpp467 ir_variable *new_var = in optimize_split_arrays() local
469 new_var->data.invariant = entry->var->data.invariant; in optimize_split_arrays()
470 new_var->data.precise = entry->var->data.precise; in optimize_split_arrays()
475 new_var->data.memory_read_only = entry->var->data.memory_read_only; in optimize_split_arrays()
476 new_var->data.memory_write_only = entry->var->data.memory_write_only; in optimize_split_arrays()
477 new_var->data.memory_coherent = entry->var->data.memory_coherent; in optimize_split_arrays()
478 new_var->data.memory_volatile = entry->var->data.memory_volatile; in optimize_split_arrays()
479 new_var->data.memory_restrict = entry->var->data.memory_restrict; in optimize_split_arrays()
480 new_var->data.image_format = entry->var->data.image_format; in optimize_split_arrays()
482 entry->components[i] = new_var; in optimize_split_arrays()
Dopt_structure_splitting.cpp338 ir_variable *new_var = in do_structure_splitting() local
347 new_var->data.memory_read_only = in do_structure_splitting()
349 new_var->data.memory_write_only = in do_structure_splitting()
351 new_var->data.memory_coherent = in do_structure_splitting()
353 new_var->data.memory_volatile = in do_structure_splitting()
355 new_var->data.memory_restrict = in do_structure_splitting()
357 new_var->data.image_format = in do_structure_splitting()
361 entry->components[i] = new_var; in do_structure_splitting()
Dlower_precision.cpp1218 ir_variable *new_var = in visit_enter() local
1220 base_ir->insert_before(new_var); in visit_enter()
1226 convert_split_assignment(new(mem_ctx) ir_dereference_variable(new_var), in visit_enter()
1228 ir->value = new(mem_ctx) ir_dereference_variable(new_var); in visit_enter()
1277 ir_variable *new_var = in handle_rvalue() local
1279 base_ir->insert_before(new_var); in handle_rvalue()
1285 convert_split_assignment(new(mem_ctx) ir_dereference_variable(new_var), in handle_rvalue()
1287 *rvalue = new(mem_ctx) ir_dereference_variable(new_var); in handle_rvalue()
1316 ir_variable *new_var = in visit_enter() local
1318 base_ir->insert_before(new_var); in visit_enter()
[all …]
Dlower_tess_level.cpp201 ir_variable **new_var = NULL; in lower_tess_level_array() local
205 new_var = &this->new_tess_level_outer_var; in lower_tess_level_array()
209 new_var = &this->new_tess_level_inner_var; in lower_tess_level_array()
212 if (new_var == NULL) in lower_tess_level_array()
216 return new(ralloc_parent(ir)) ir_dereference_variable(*new_var); in lower_tess_level_array()
Dgl_nir_opt_dead_builtin_varyings.c308 nir_shader *shader, nir_variable **new_var, in prepare_array() argument
321 new_var[i] = create_new_var(shader, name, nir_var_shader_temp, in prepare_array()
325 new_var[i] = create_new_var(shader, name, rv_data->info->mode, in prepare_array()
327 new_var[i]->data.location = start_location + i; in prepare_array()
328 new_var[i]->data.explicit_location = true; in prepare_array()
Dir_clone.cpp180 ir_variable *new_var; in clone() local
184 new_var = entry ? (ir_variable *) entry->data : this->var; in clone()
186 new_var = this->var; in clone()
189 return new(mem_ctx) ir_dereference_variable(new_var); in clone()
/third_party/mesa3d/src/compiler/nir/
Dnir_split_64bit_vec3_and_vec4.c136 variable_pair *new_var = NULL; in get_var_pair() local
144 new_var = (variable_pair *)calloc(1, sizeof(variable_pair)); in get_var_pair()
145 new_var->xy = nir_variable_clone(old_var, b->shader); in get_var_pair()
146 new_var->zw = nir_variable_clone(old_var, b->shader); in get_var_pair()
147 new_var->xy->type = glsl_dvec_type(2); in get_var_pair()
148 new_var->zw->type = glsl_dvec_type(old_components - 2); in get_var_pair()
152 new_var->xy->type = glsl_array_type(new_var->xy->type, in get_var_pair()
154 new_var->zw->type = glsl_array_type(new_var->zw->type, in get_var_pair()
158 exec_list_push_tail(&b->impl->locals, &new_var->xy->node); in get_var_pair()
159 exec_list_push_tail(&b->impl->locals, &new_var->zw->node); in get_var_pair()
[all …]
Dnir_lower_io_to_vector.c321 build_array_deref_of_new_var(nir_builder *b, nir_variable *new_var, in build_array_deref_of_new_var() argument
325 return nir_build_deref_var(b, new_var); in build_array_deref_of_new_var()
328 build_array_deref_of_new_var(b, new_var, nir_deref_instr_parent(leader)); in build_array_deref_of_new_var()
359 nir_builder *b, nir_variable *new_var, in build_array_deref_of_new_var_flat() argument
362 nir_deref_instr *deref = nir_build_deref_var(b, new_var); in build_array_deref_of_new_var_flat()
364 bool per_vertex = nir_is_arrayed_io(new_var, shader->info.stage); in build_array_deref_of_new_var_flat()
381 new_var->data.mode == nir_var_shader_in; in build_array_deref_of_new_var_flat()
476 nir_variable *new_var = old_var->data.mode == nir_var_shader_in ? in nir_lower_io_to_vector_impl() local
481 if (!new_var) in nir_lower_io_to_vector_impl()
484 const unsigned new_frac = new_var->data.location_frac; in nir_lower_io_to_vector_impl()
[all …]
Dnir_linking_helpers.c1176 nir_variable *new_var = NULL; in get_uniform_var_in_consumer() local
1179 new_var = v; in get_uniform_var_in_consumer()
1185 if (!new_var) { in get_uniform_var_in_consumer()
1186 new_var = nir_variable_clone(var_in_producer, consumer); in get_uniform_var_in_consumer()
1187 nir_shader_add_variable(consumer, new_var); in get_uniform_var_in_consumer()
1190 return new_var; in get_uniform_var_in_consumer()
1434 insert_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_sorted() argument
1445 if (new_var->data.per_primitive < var->data.per_primitive || in insert_sorted()
1446 (new_var->data.per_primitive == var->data.per_primitive && in insert_sorted()
1447 (var->data.location > new_var->data.location || in insert_sorted()
[all …]
/third_party/mesa3d/src/gallium/drivers/lima/standalone/
Dlima_compiler_cmdline.c49 insert_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_sorted() argument
52 if (var->data.location > new_var->data.location && in insert_sorted()
53 new_var->data.location >= 0) { in insert_sorted()
54 exec_node_insert_node_before(&var->node, &new_var->node); in insert_sorted()
58 exec_list_push_tail(var_list, &new_var->node); in insert_sorted()
/third_party/mesa3d/src/microsoft/compiler/
Ddxil_nir.c1159 nir_variable *new_var; member
1177 nir_variable *new_var = params->new_var; in dxil_nir_split_clip_cull_distance_instr() local
1213 if (!new_var) { in dxil_nir_split_clip_cull_distance_instr()
1223 new_var = nir_variable_clone(var, params->shader); in dxil_nir_split_clip_cull_distance_instr()
1224 nir_shader_add_variable(params->shader, new_var); in dxil_nir_split_clip_cull_distance_instr()
1227 new_var->type = glsl_array_type(glsl_float_type(), new_length, 0); in dxil_nir_split_clip_cull_distance_instr()
1230 new_var->type = glsl_array_type(new_var->type, arrayed_io_length, 0); in dxil_nir_split_clip_cull_distance_instr()
1232 new_var->data.location++; in dxil_nir_split_clip_cull_distance_instr()
1233 new_var->data.location_frac = 0; in dxil_nir_split_clip_cull_distance_instr()
1234 params->new_var = new_var; in dxil_nir_split_clip_cull_distance_instr()
[all …]
/third_party/mesa3d/src/asahi/compiler/
Dcmdline.c48 insert_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_sorted() argument
51 if (var->data.location > new_var->data.location) { in insert_sorted()
52 exec_node_insert_node_before(&var->node, &new_var->node); in insert_sorted()
56 exec_list_push_tail(var_list, &new_var->node); in insert_sorted()
/third_party/gstreamer/gstplugins_good/gst/goom/
Dgoomsl_yacc.y32 static NodeType *new_var(const char *str, int line_number);
519 tmp = new_var(stmp,expr->line_number); in precommit_expr()
683 tmp = new_var(stmp,call->line_number); in precommit_call_expr()
686 commit_node(new_set(tmp,new_var(call->str,call->line_number)),0); in precommit_call_expr()
716 tmp = new_var(stmp, set->line_number); in commit_test2()
1184 NodeType *new_var(const char *str, int line_number) { in new_var() function
1330 declaration: FLOAT_TK LTYPE_VAR '=' expression { gsl_float_decl_local($2); $$ = new_set(new_var($2,…
1331 …| INT_TK LTYPE_VAR '=' expression { gsl_int_decl_local($2); $$ = new_set(new_var($2,currentGoo…
1332 …| PTR_TK LTYPE_VAR '=' expression { gsl_ptr_decl_local($2); $$ = new_set(new_var($2,currentGoo…
1333 …AR LTYPE_VAR '=' expression { gsl_struct_decl_local($1,$2); $$ = new_set(new_var($2,currentGoomSL-…
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir.cpp135 insert_uniform_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_uniform_sorted() argument
138 if (var->data.binding > new_var->data.binding || in insert_uniform_sorted()
139 (var->data.binding == new_var->data.binding && in insert_uniform_sorted()
140 var->data.offset > new_var->data.offset)) { in insert_uniform_sorted()
141 exec_node_insert_node_before(&var->node, &new_var->node); in insert_uniform_sorted()
145 exec_list_push_tail(var_list, &new_var->node); in insert_uniform_sorted()
161 insert_fsoutput_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_fsoutput_sorted() argument
165 if (var->data.location > new_var->data.location || in insert_fsoutput_sorted()
166 (var->data.location == new_var->data.location && in insert_fsoutput_sorted()
167 var->data.index > new_var->data.index)) { in insert_fsoutput_sorted()
[all …]
Dsfn_nir_vectorize_vs_inputs.c191 nir_variable *new_var; in r600_vec_instr_stack_pop() local
192 new_var = updated_vars[loc][var->data.location_frac]; in r600_vec_instr_stack_pop()
195 glsl_get_vector_elements(glsl_without_array(new_var->type)); in r600_vec_instr_stack_pop()
205 if (new_var == var) { in r600_vec_instr_stack_pop()
209 r600_create_new_load(b, intr, new_var, var->data.location_frac, in r600_vec_instr_stack_pop()
Dsfn_nir_lower_fs_out_to_vector.cpp341 nir_variable *new_var = m_vars[loc][var->data.location_frac]; in vec_instr_stack_pop() local
342 unsigned num_comps = glsl_get_vector_elements(glsl_without_array(new_var->type)); in vec_instr_stack_pop()
350 if (new_var == var) { in vec_instr_stack_pop()
386 create_new_io(b, intr, new_var, srcs, new_var->data.location_frac, in vec_instr_stack_pop()
/third_party/mesa3d/src/panfrost/bifrost/
Dcmdline.c81 insert_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_sorted() argument
84 if (var->data.location > new_var->data.location) { in insert_sorted()
85 exec_node_insert_node_before(&var->node, &new_var->node); in insert_sorted()
89 exec_list_push_tail(var_list, &new_var->node); in insert_sorted()
/third_party/mesa3d/src/gallium/drivers/r300/compiler/
Dradeon_variable.c300 struct rc_variable * new_var; in get_variable_pair_helper() local
324 new_var = rc_variable(c, file, sub_inst->DestIndex, writemask, in get_variable_pair_helper()
326 get_variable_helper(variable_list, new_var); in get_variable_pair_helper()
400 struct rc_variable * new_var; in rc_get_variables() local
406 new_var = rc_variable(c, inst->U.I.DstReg.File, in rc_get_variables()
409 get_variable_helper(&variable_list, new_var); in rc_get_variables()
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
Dir3_cmdline.c69 insert_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_sorted() argument
72 if (var->data.location > new_var->data.location) { in insert_sorted()
73 exec_node_insert_node_before(&var->node, &new_var->node); in insert_sorted()
77 exec_list_push_tail(var_list, &new_var->node); in insert_sorted()
/third_party/skia/third_party/externals/tint/src/transform/
Dbinding_remapper.cc133 auto* new_var = ctx.dst->create<ast::Variable>( in Run() local
137 ctx.Replace(var, new_var); in Run()
Dmodule_scope_var_to_entry_point_param.cc322 auto new_var = var_to_newvar[target_var]; in Process() local
324 const ast::Expression* arg = ctx.dst->Expr(new_var.symbol); in Process()
325 if (is_entry_point && !is_handle && !new_var.is_pointer) { in Process()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_nir_lower_builtin.c203 nir_variable *new_var = get_variable(b, &path, element); in lower_builtin_instr() local
208 nir_ssa_def *def = nir_load_var(b, new_var); in lower_builtin_instr()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_nir_passes.c1075 nir_variable *new_var = nir_variable_create(s, nir_var_shader_out, in d3d12_split_multistream_varyings() local
1079 new_var->data = var->data; in d3d12_split_multistream_varyings()
1080 new_var->data.stream = subvars[subvar].stream; in d3d12_split_multistream_varyings()
1081 new_var->data.location_frac = location_frac; in d3d12_split_multistream_varyings()
1083 subvars[subvar].var = new_var; in d3d12_split_multistream_varyings()

12