Lines Matching refs:src
58 if (!nir_src_is_const(cpy->src[2]))
64 if (nir_src_as_uint(cpy->src[2]) < (uint64_t)parent_type_size)
129 nir_deref_instr *dst = nir_src_as_deref(cpy->src[0]);
130 nir_deref_instr *src = nir_src_as_deref(cpy->src[1]);
133 if (dst == src) {
138 if (!nir_src_is_const(cpy->src[2]))
141 uint64_t size = nir_src_as_uint(cpy->src[2]);
147 if (glsl_type_is_vector_or_scalar(src->type) &&
150 glsl_get_explicit_size(src->type, false) == size) {
153 nir_load_deref_with_access(b, src, nir_intrinsic_src_access(cpy));
162 if (dst->type == src->type &&
166 nir_copy_deref_with_access(b, dst, src,
188 src = nir_build_deref_cast(b, &src->dest.ssa,
189 src->modes, dst->type, 0);
190 nir_copy_deref_with_access(b, dst, src,
208 src = nir_build_deref_cast(b, &src->dest.ssa,
209 src->modes, dst->type, 0);
210 nir_copy_deref_with_access(b, dst, src,
216 if (src->modes == nir_var_function_temp &&
217 type_is_tightly_packed(src->type, &type_size) &&
221 dst->modes, src->type, 0);
222 nir_copy_deref_with_access(b, dst, src,
266 while (opt_memcpy_deref_cast(cpy, &cpy->src[0]))
268 while (opt_memcpy_deref_cast(cpy, &cpy->src[1]))