Home
last modified time | relevance | path

Searched refs:new_var (Results 1 – 25 of 28) 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.cpp475 ir_variable *new_var = in optimize_split_arrays() local
477 new_var->data.invariant = entry->var->data.invariant; in optimize_split_arrays()
478 new_var->data.precise = entry->var->data.precise; in optimize_split_arrays()
483 new_var->data.memory_read_only = entry->var->data.memory_read_only; in optimize_split_arrays()
484 new_var->data.memory_write_only = entry->var->data.memory_write_only; in optimize_split_arrays()
485 new_var->data.memory_coherent = entry->var->data.memory_coherent; in optimize_split_arrays()
486 new_var->data.memory_volatile = entry->var->data.memory_volatile; in optimize_split_arrays()
487 new_var->data.memory_restrict = entry->var->data.memory_restrict; in optimize_split_arrays()
488 new_var->data.image_format = entry->var->data.image_format; in optimize_split_arrays()
490 entry->components[i] = new_var; in optimize_split_arrays()
Dopt_structure_splitting.cpp341 ir_variable *new_var = in do_structure_splitting() local
350 new_var->data.memory_read_only = in do_structure_splitting()
352 new_var->data.memory_write_only = in do_structure_splitting()
354 new_var->data.memory_coherent = in do_structure_splitting()
356 new_var->data.memory_volatile = in do_structure_splitting()
358 new_var->data.memory_restrict = in do_structure_splitting()
360 new_var->data.image_format = in do_structure_splitting()
364 entry->components[i] = new_var; in do_structure_splitting()
Dlower_precision.cpp1209 ir_variable *new_var = in visit_enter() local
1211 base_ir->insert_before(new_var); in visit_enter()
1217 convert_split_assignment(new(mem_ctx) ir_dereference_variable(new_var), in visit_enter()
1219 ir->value = new(mem_ctx) ir_dereference_variable(new_var); in visit_enter()
1268 ir_variable *new_var = in handle_rvalue() local
1270 base_ir->insert_before(new_var); in handle_rvalue()
1276 convert_split_assignment(new(mem_ctx) ir_dereference_variable(new_var), in handle_rvalue()
1278 *rvalue = new(mem_ctx) ir_dereference_variable(new_var); in handle_rvalue()
1307 ir_variable *new_var = in visit_enter() local
1309 base_ir->insert_before(new_var); in visit_enter()
[all …]
Dopt_dead_builtin_varyings.cpp355 ir_variable **new_var, in prepare_array() argument
370 new_var[i] = in prepare_array()
376 new_var[i] = in prepare_array()
379 new_var[i]->data.location = start_location + i; in prepare_array()
380 new_var[i]->data.explicit_location = true; in prepare_array()
381 new_var[i]->data.explicit_index = 0; in prepare_array()
384 ir->get_head_raw()->insert_before(new_var[i]); in prepare_array()
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()
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/mindspore/tests/st/auto_monad/
Dtest_effect_optimizer.py57 new_var, new_m, new_v = net(
59 assert ((new_var != var).any() and (new_m != m).any() and (new_v != v).any()), \
93 new_var, new_m, new_v = net(beta1_power, lr, beta1, beta2, epsilon, grad)
94 assert ((new_var != var).any() and (new_m != m).any() and (new_v != v).any()), \
126 new_var, new_accum, new_accum_update = net(lr, rho, epsilon, grad)
127 …assert ((new_var != var).any() and (new_accum != accum).any() and (new_accum_update != accum_updat…
154 new_var, new_accum = net(lr, grad)
155 assert ((new_var != var).any() and (new_accum != accum).any()), \
182 new_var, new_accum = net(lr, grad)
183 assert ((new_var != var).any() and (new_accum != accum).any()), \
[all …]
Dtest_auto_monad_expression.py76 out, new_var, new_m, new_v = net(beta1_power, beta2_power, lr, beta1, beta2, epsilon, grad)
81 allclose_nparray(new_var_pyn.asnumpy(), new_var.asnumpy(), 0.001, 0.001)
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_io_to_vector.c320 build_array_deref_of_new_var(nir_builder *b, nir_variable *new_var, in build_array_deref_of_new_var() argument
324 return nir_build_deref_var(b, new_var); in build_array_deref_of_new_var()
327 build_array_deref_of_new_var(b, new_var, nir_deref_instr_parent(leader)); in build_array_deref_of_new_var()
358 nir_builder *b, nir_variable *new_var, in build_array_deref_of_new_var_flat() argument
361 nir_deref_instr *deref = nir_build_deref_var(b, new_var); in build_array_deref_of_new_var_flat()
363 bool per_vertex = nir_is_arrayed_io(new_var, shader->info.stage); in build_array_deref_of_new_var_flat()
380 new_var->data.mode == nir_var_shader_in; in build_array_deref_of_new_var_flat()
475 nir_variable *new_var = old_var->data.mode == nir_var_shader_in ? in nir_lower_io_to_vector_impl() local
480 if (!new_var) in nir_lower_io_to_vector_impl()
483 const unsigned new_frac = new_var->data.location_frac; in nir_lower_io_to_vector_impl()
[all …]
Dnir_linking_helpers.c1143 nir_variable *new_var = NULL; in get_uniform_var_in_consumer() local
1146 new_var = v; in get_uniform_var_in_consumer()
1152 if (!new_var) { in get_uniform_var_in_consumer()
1153 new_var = nir_variable_clone(var_in_producer, consumer); in get_uniform_var_in_consumer()
1154 nir_shader_add_variable(consumer, new_var); in get_uniform_var_in_consumer()
1157 return new_var; in get_uniform_var_in_consumer()
1386 insert_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_sorted() argument
1389 if (var->data.location > new_var->data.location) { in insert_sorted()
1390 exec_node_insert_node_before(&var->node, &new_var->node); in insert_sorted()
1394 exec_list_push_tail(var_list, &new_var->node); in insert_sorted()
/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/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/mesa3d/src/microsoft/compiler/
Ddxil_nir.c1136 nir_variable *new_var; member
1154 nir_variable *new_var = params->new_var; in dxil_nir_split_clip_cull_distance_instr() local
1182 if (!new_var) { in dxil_nir_split_clip_cull_distance_instr()
1192 new_var = nir_variable_clone(var, params->shader); in dxil_nir_split_clip_cull_distance_instr()
1193 nir_shader_add_variable(params->shader, new_var); in dxil_nir_split_clip_cull_distance_instr()
1196 new_var->type = glsl_array_type(glsl_float_type(), new_length, 0); in dxil_nir_split_clip_cull_distance_instr()
1197 new_var->data.location++; in dxil_nir_split_clip_cull_distance_instr()
1198 new_var->data.location_frac = 0; in dxil_nir_split_clip_cull_distance_instr()
1199 params->new_var = new_var; in dxil_nir_split_clip_cull_distance_instr()
1220 nir_deref_instr *new_var_deref = nir_build_deref_var(b, new_var); in dxil_nir_split_clip_cull_distance_instr()
[all …]
/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.cpp387 insert_uniform_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_uniform_sorted() argument
390 if (var->data.binding > new_var->data.binding || in insert_uniform_sorted()
391 (var->data.binding == new_var->data.binding && in insert_uniform_sorted()
392 var->data.offset > new_var->data.offset)) { in insert_uniform_sorted()
393 exec_node_insert_node_before(&var->node, &new_var->node); in insert_uniform_sorted()
397 exec_list_push_tail(var_list, &new_var->node); in insert_uniform_sorted()
413 insert_fsoutput_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_fsoutput_sorted() argument
417 if (var->data.location > new_var->data.location || in insert_fsoutput_sorted()
418 (var->data.location == new_var->data.location && in insert_fsoutput_sorted()
419 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/gallium/drivers/r300/compiler/
Dradeon_variable.c319 struct rc_variable * new_var; in get_variable_pair_helper() local
343 new_var = rc_variable(c, file, sub_inst->DestIndex, writemask, in get_variable_pair_helper()
345 get_variable_helper(variable_list, new_var); in get_variable_pair_helper()
364 struct rc_variable * new_var; in rc_get_variables() local
372 new_var = rc_variable(c, inst->U.I.DstReg.File, in rc_get_variables()
375 get_variable_helper(&variable_list, new_var); in rc_get_variables()
/third_party/mesa3d/src/panfrost/bifrost/
Dcmdline.c80 insert_sorted(struct exec_list *var_list, nir_variable *new_var) in insert_sorted() argument
83 if (var->data.location > new_var->data.location) { in insert_sorted()
84 exec_node_insert_node_before(&var->node, &new_var->node); in insert_sorted()
88 exec_list_push_tail(var_list, &new_var->node); in insert_sorted()
/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.c214 nir_variable *new_var = get_variable(state, &path, element); in lower_builtin_block() local
219 nir_ssa_def *def = nir_load_var(b, new_var); in lower_builtin_block()

12