Home
last modified time | relevance | path

Searched refs:old_def (Results 1 - 4 of 4) sorted by relevance

/third_party/mesa3d/src/compiler/glsl/
H A Dlink_interface_blocks.cpp536 ir_variable *old_def = definitions.lookup(var); in validate_interstage_uniform_blocks() local
537 if (old_def == NULL) { in validate_interstage_uniform_blocks()
544 if (!intrastage_match(old_def, var, prog, false /* precision */)) { in validate_interstage_uniform_blocks()
/third_party/mesa3d/src/compiler/nir/
H A Dnir.c2281 nir_ssa_def *old_def = nir_instr_ssa_def(instr); in nir_function_impl_lower_instructions() local
2283 if (old_def != NULL) { in nir_function_impl_lower_instructions()
2296 list_replace(&old_def->uses, &old_uses); in nir_function_impl_lower_instructions()
2297 list_inithead(&old_def->uses); in nir_function_impl_lower_instructions()
2298 list_replace(&old_def->if_uses, &old_if_uses); in nir_function_impl_lower_instructions()
2299 list_inithead(&old_def->if_uses); in nir_function_impl_lower_instructions()
2306 assert(old_def != NULL); in nir_function_impl_lower_instructions()
2317 if (nir_ssa_def_is_unused(old_def)) { in nir_function_impl_lower_instructions()
2325 if (old_def) { in nir_function_impl_lower_instructions()
2326 list_replace(&old_uses, &old_def in nir_function_impl_lower_instructions()
[all...]
H A Dnir_lower_vars_to_ssa.c650 nir_ssa_def *old_def = in rename_variables() local
661 srcs[i] = nir_get_ssa_scalar(old_def, i); in rename_variables()
/third_party/mesa3d/src/amd/common/
H A Dac_nir_lower_ngg.c559 rewrite_uses_to_var(nir_builder *b, nir_ssa_def *old_def, nir_variable *replacement_var, unsigned replacement_var_channel) in rewrite_uses_to_var() argument
561 if (old_def->parent_instr->type == nir_instr_type_load_const) in rewrite_uses_to_var()
564 b->cursor = nir_after_instr(old_def->parent_instr); in rewrite_uses_to_var()
566 b->cursor = nir_after_phis(old_def->parent_instr->block); in rewrite_uses_to_var()
571 if (old_def->num_components > 1) { in rewrite_uses_to_var()
572 /* old_def uses a swizzled vector component. in rewrite_uses_to_var()
577 for (unsigned j = 0; j < old_def->num_components; ++j) in rewrite_uses_to_var()
578 old_def_elements[j] = nir_channel(b, old_def, j); in rewrite_uses_to_var()
579 replacement = nir_vec(b, old_def_elements, old_def->num_components); in rewrite_uses_to_var()
582 nir_ssa_def_rewrite_uses_after(old_def, replacemen in rewrite_uses_to_var()
[all...]

Completed in 9 milliseconds