Lines Matching refs:nvar
129 nir_constant_clone(const nir_constant *c, nir_variable *nvar) in nir_constant_clone() argument
131 nir_constant *nc = ralloc(nvar, nir_constant); in nir_constant_clone()
135 nc->elements = ralloc_array(nvar, nir_constant *, c->num_elements); in nir_constant_clone()
137 nc->elements[i] = nir_constant_clone(c->elements[i], nvar); in nir_constant_clone()
149 nir_variable *nvar = rzalloc(shader, nir_variable); in nir_variable_clone() local
151 nvar->type = var->type; in nir_variable_clone()
152 nvar->name = ralloc_strdup(nvar, var->name); in nir_variable_clone()
153 nvar->data = var->data; in nir_variable_clone()
154 nvar->num_state_slots = var->num_state_slots; in nir_variable_clone()
155 nvar->state_slots = ralloc_array(nvar, nir_state_slot, var->num_state_slots); in nir_variable_clone()
156 memcpy(nvar->state_slots, var->state_slots, in nir_variable_clone()
159 nvar->constant_initializer = in nir_variable_clone()
160 nir_constant_clone(var->constant_initializer, nvar); in nir_variable_clone()
162 nvar->interface_type = var->interface_type; in nir_variable_clone()
164 return nvar; in nir_variable_clone()
170 nir_variable *nvar = nir_variable_clone(var, state->ns); in clone_variable() local
171 add_remap(state, nvar, var); in clone_variable()
173 return nvar; in clone_variable()
183 nir_variable *nvar = clone_variable(state, var); in clone_var_list() local
184 exec_list_push_tail(dst, &nvar->node); in clone_var_list()
268 nir_variable *nvar = remap_var(state, dvar->var); in clone_deref_var() local
269 nir_deref_var *ndvar = nir_deref_var_create(ninstr, nvar); in clone_deref_var()