Home | History | Annotate | Download | only in nir

Lines Matching refs:ns

52    nir_shader *ns;
179 nir_variable *nvar = nir_variable_clone(var, state->ns);
203 nir_register *nreg = rzalloc(state->ns, nir_register);
271 nir_alu_instr *nalu = nir_alu_instr_create(state->ns, alu->op);
293 nir_deref_instr_create(state->ns, deref->deref_type);
337 nir_intrinsic_instr_create(state->ns, itr->intrinsic);
357 nir_load_const_instr_create(state->ns, lc->def.num_components,
371 nir_ssa_undef_instr_create(state->ns, sa->def.num_components,
382 nir_tex_instr *ntex = nir_tex_instr_create(state->ns, tex->num_srcs);
409 nir_phi_instr *nphi = nir_phi_instr_create(state->ns);
453 nir_jump_instr *njmp = nir_jump_instr_create(state->ns, jmp->type);
462 nir_call_instr *ncall = nir_call_instr_create(state->ns, ncallee);
539 nir_if *ni = nir_if_create(state->ns);
555 nir_loop *nloop = nir_loop_create(state->ns);
627 state.ns = src->impl->function->shader;
632 nir_block *nblk = nir_block_create(state.ns);
644 nir_function_impl *nfi = nir_function_impl_create_bare(state->ns);
668 state.ns = shader;
678 clone_function(clone_state *state, const nir_function *fxn, nir_shader *ns)
680 assert(ns == state->ns);
681 nir_function *nfxn = nir_function_create(ns, fxn->name);
687 nfxn->params = ralloc_array(state->ns, nir_parameter, fxn->num_params);
706 nir_shader *ns = nir_shader_create(mem_ctx, s->info.stage, s->options, NULL);
707 state.ns = ns;
709 clone_var_list(&state, &ns->uniforms, &s->uniforms);
710 clone_var_list(&state, &ns->inputs, &s->inputs);
711 clone_var_list(&state, &ns->outputs, &s->outputs);
712 clone_var_list(&state, &ns->shared, &s->shared);
713 clone_var_list(&state, &ns->globals, &s->globals);
714 clone_var_list(&state, &ns->system_values, &s->system_values);
718 clone_function(&state, fxn, ns);
731 ns->info = s->info;
732 ns->info.name = ralloc_strdup(ns, ns->info.name);
733 if (ns->info.label)
734 ns->info.label = ralloc_strdup(ns, ns->info.label);
736 ns->num_inputs = s->num_inputs;
737 ns->num_uniforms = s->num_uniforms;
738 ns->num_outputs = s->num_outputs;
739 ns->num_shared = s->num_shared;
740 ns->scratch_size = s->scratch_size;
742 ns->constant_data_size = s->constant_data_size;
744 ns->constant_data = ralloc_size(ns, s->constant_data_size);
745 memcpy(ns->constant_data, s->constant_data, s->constant_data_size);
750 return ns;