Lines Matching defs:constant

229 vtn_const_ssa_value(struct vtn_builder *b, nir_constant *constant,
232 struct hash_entry *entry = _mesa_hash_table_search(b->const_table, constant);
246 memcpy(load->value, constant->values,
257 val->elems[i] = vtn_const_ssa_value(b, constant->elements[i],
264 val->elems[i] = vtn_const_ssa_value(b, constant->elements[i],
282 return vtn_const_ssa_value(b, val->constant, val->type->type);
1920 vtn_fail("Invalid type for null constant");
1965 val->constant = rzalloc(b, nir_constant);
1984 val->constant->values[0].b = u32val.u32 != 0;
1996 val->constant->values[0].u64 = vtn_u64_literal(&w[3]);
1999 val->constant->values[0].u32 = w[3];
2002 val->constant->values[0].u16 = w[3];
2005 val->constant->values[0].u8 = w[3];
2013 &val->constant->values[0]);
2030 elems[i] = elem_val->constant;
2037 /* to make it easier, just insert a NULL constant for now */
2046 val->constant->values[i] = elems[i]->values[0];
2053 ralloc_steal(val->constant, elems);
2054 val->constant->num_elements = elem_count;
2055 val->constant->elements = elems;
2096 combined[i] = v0->constant->values[i];
2100 combined[len0 + i] = v1->constant->values[i];
2106 /* If component is not used, set the value to a known constant
2109 val->constant->values[j] = undef;
2114 val->constant->values[j] = combined[comp];
2128 c = &comp->constant;
2132 val->constant = nir_constant_clone(comp->constant,
2134 c = &val->constant;
2170 val->constant = *c;
2174 val->constant->values[i] = (*c)->values[elem + i];
2181 *c = insert->constant;
2185 (*c)->values[elem + i] = insert->constant->values[i];
2242 src[j][c] = src_val->constant->values[c];
2268 nir_eval_const_opcode(op, val->constant->values,
2278 val->constant = vtn_null_constant(b, val->type);
3137 gather_offsets->constant->elements[i]->values;
6529 /* Handle all variable, type, and constant instructions */
6546 b->workgroup_size_builtin->constant->values;