Home
last modified time | relevance | path

Searched refs:vtn_ssa_value (Results 1 – 6 of 6) sorted by relevance

/external/mesa3d/src/compiler/spirv/
Dvtn_private.h181 struct vtn_ssa_value { struct
184 struct vtn_ssa_value **elems; argument
191 struct vtn_ssa_value *transposed; argument
319 struct vtn_ssa_value *ssa;
426 struct vtn_ssa_value *vtn_ssa_value(struct vtn_builder *b, uint32_t value_id);
428 struct vtn_ssa_value *vtn_create_ssa_value(struct vtn_builder *b,
431 struct vtn_ssa_value *vtn_ssa_transpose(struct vtn_builder *b,
432 struct vtn_ssa_value *src);
453 struct vtn_ssa_value *vtn_local_load(struct vtn_builder *b, nir_deref_var *src);
455 void vtn_local_store(struct vtn_builder *b, struct vtn_ssa_value *src,
[all …]
Dvtn_alu.c34 static struct vtn_ssa_value *
35 wrap_matrix(struct vtn_builder *b, struct vtn_ssa_value *val) in wrap_matrix()
43 struct vtn_ssa_value *dest = rzalloc(b, struct vtn_ssa_value); in wrap_matrix()
45 dest->elems = ralloc_array(b, struct vtn_ssa_value *, 1); in wrap_matrix()
51 static struct vtn_ssa_value *
52 unwrap_matrix(struct vtn_ssa_value *val) in unwrap_matrix()
60 static struct vtn_ssa_value *
62 struct vtn_ssa_value *_src0, struct vtn_ssa_value *_src1) in matrix_multiply()
65 struct vtn_ssa_value *src0 = wrap_matrix(b, _src0); in matrix_multiply()
66 struct vtn_ssa_value *src1 = wrap_matrix(b, _src1); in matrix_multiply()
[all …]
Dspirv_to_nir.c57 static struct vtn_ssa_value *
60 struct vtn_ssa_value *val = rzalloc(b, struct vtn_ssa_value); in vtn_undef_ssa_value()
69 val->elems = ralloc_array(b, struct vtn_ssa_value *, elems); in vtn_undef_ssa_value()
92 static struct vtn_ssa_value *
101 struct vtn_ssa_value *val = rzalloc(b, struct vtn_ssa_value); in vtn_const_ssa_value()
124 val->elems = ralloc_array(b, struct vtn_ssa_value *, columns); in vtn_const_ssa_value()
127 struct vtn_ssa_value *col_val = rzalloc(b, struct vtn_ssa_value); in vtn_const_ssa_value()
145 val->elems = ralloc_array(b, struct vtn_ssa_value *, elems); in vtn_const_ssa_value()
155 val->elems = ralloc_array(b, struct vtn_ssa_value *, elems); in vtn_const_ssa_value()
172 struct vtn_ssa_value *
[all …]
Dvtn_variables.c58 return vtn_ssa_value(b, link.id)->def; in vtn_access_link_as_ssa()
60 return nir_imul(&b->nb, vtn_ssa_value(b, link.id)->def, in vtn_access_link_as_ssa()
135 nir_src_for_ssa(vtn_ssa_value(b, chain->link[i].id)->def); in vtn_access_chain_to_deref()
171 nir_deref *tail, struct vtn_ssa_value *inout) in _vtn_local_load_store()
254 struct vtn_ssa_value *
258 struct vtn_ssa_value *val = vtn_create_ssa_value(b, src_tail->type); in vtn_local_load()
276 vtn_local_store(struct vtn_builder *b, struct vtn_ssa_value *src, in vtn_local_store()
282 struct vtn_ssa_value *val = vtn_create_ssa_value(b, dest_tail->type); in vtn_local_store()
468 struct vtn_ssa_value **inout, const struct glsl_type *type) in _vtn_load_store_tail()
517 struct vtn_type *type, struct vtn_ssa_value **inout) in _vtn_block_load_store()
[all …]
Dvtn_glsl450.c91 build_mat_det(struct vtn_builder *b, struct vtn_ssa_value *src) in build_mat_det()
112 build_mat_subdet(struct nir_builder *b, struct vtn_ssa_value *src, in build_mat_subdet()
142 static struct vtn_ssa_value *
143 matrix_inverse(struct vtn_builder *b, struct vtn_ssa_value *src) in matrix_inverse()
163 struct vtn_ssa_value *val = vtn_create_ssa_value(b, src->type); in matrix_inverse()
430 src[i] = vtn_ssa_value(b, w[i + 5])->def; in handle_glsl450_alu()
679 intrin->src[0] = nir_src_for_ssa(vtn_ssa_value(b, w[6])->def); in handle_glsl450_interpolation()
701 val->ssa = rzalloc(b, struct vtn_ssa_value); in vtn_handle_glsl450_instruction()
703 val->ssa->def = build_mat_det(b, vtn_ssa_value(b, w[5])); in vtn_handle_glsl450_instruction()
709 val->ssa = matrix_inverse(b, vtn_ssa_value(b, w[5])); in vtn_handle_glsl450_instruction()
Dvtn_cfg.c535 struct vtn_ssa_value *src = vtn_ssa_value(b, w[i]); in vtn_handle_phi_second_pass()
598 struct vtn_ssa_value *src = vtn_ssa_value(b, block->branch[1]); in vtn_emit_cf_list()
616 nir_src_for_ssa(vtn_ssa_value(b, vtn_if->condition)->def); in vtn_emit_cf_list()
714 nir_ssa_def *sel = vtn_ssa_value(b, vtn_switch->selector)->def; in vtn_emit_cf_list()