Lines Matching refs:fxn
706 clone_function(clone_state *state, const nir_function *fxn, nir_shader *ns) in clone_function() argument
709 nir_function *nfxn = nir_function_create(ns, fxn->name); in clone_function()
712 add_remap(state, nfxn, fxn); in clone_function()
714 nfxn->num_params = fxn->num_params; in clone_function()
715 if (fxn->num_params) { in clone_function()
716 nfxn->params = ralloc_array(state->ns, nir_parameter, fxn->num_params); in clone_function()
717 memcpy(nfxn->params, fxn->params, sizeof(nir_parameter) * fxn->num_params); in clone_function()
719 nfxn->is_entrypoint = fxn->is_entrypoint; in clone_function()
742 foreach_list_typed(nir_function, fxn, node, &s->functions) in nir_shader_clone()
743 clone_function(&state, fxn, ns); in nir_shader_clone()
750 nir_foreach_function(fxn, s) { in nir_shader_clone()
751 nir_function *nfxn = remap_global(&state, fxn); in nir_shader_clone()
752 nfxn->impl = clone_function_impl(&state, fxn->impl); in nir_shader_clone()