Home
last modified time | relevance | path

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

/third_party/mesa3d/src/compiler/spirv/
Dvtn_subgroup.c26 static struct vtn_ssa_value *
29 struct vtn_ssa_value *src0, in vtn_build_subgroup_instr()
41 struct vtn_ssa_value *dst = vtn_create_ssa_value(b, src0->type); in vtn_build_subgroup_instr()
187 vtn_ssa_value(b, w[3 + has_scope]), in vtn_handle_subgroup()
198 vtn_ssa_value(b, w[3 + has_scope]), in vtn_handle_subgroup()
229 switch (glsl_get_base_type(vtn_ssa_value(b, w[4])->type)) { in vtn_handle_subgroup()
297 vtn_build_subgroup_instr(b, op, vtn_ssa_value(b, w[4]), in vtn_handle_subgroup()
307 vtn_build_subgroup_instr(b, op, vtn_ssa_value(b, w[3]), in vtn_handle_subgroup()
331 struct vtn_ssa_value *current = in vtn_handle_subgroup()
332 vtn_build_subgroup_instr(b, nir_intrinsic_shuffle, vtn_ssa_value(b, w[3]), in vtn_handle_subgroup()
[all …]
Dvtn_alu.c36 static struct vtn_ssa_value *
37 wrap_matrix(struct vtn_builder *b, struct vtn_ssa_value *val) in wrap_matrix()
45 struct vtn_ssa_value *dest = rzalloc(b, struct vtn_ssa_value); in wrap_matrix()
47 dest->elems = ralloc_array(b, struct vtn_ssa_value *, 1); in wrap_matrix()
53 static struct vtn_ssa_value *
54 unwrap_matrix(struct vtn_ssa_value *val) in unwrap_matrix()
62 static struct vtn_ssa_value *
64 struct vtn_ssa_value *_src0, struct vtn_ssa_value *_src1) in matrix_multiply()
67 struct vtn_ssa_value *src0 = wrap_matrix(b, _src0); in matrix_multiply()
68 struct vtn_ssa_value *src1 = wrap_matrix(b, _src1); in matrix_multiply()
[all …]
Dvtn_private.h313 struct vtn_ssa_value { struct
316 struct vtn_ssa_value **elems; argument
323 struct vtn_ssa_value *transposed; argument
625 struct vtn_ssa_value *ssa;
760 struct vtn_ssa_value *
897 struct vtn_ssa_value *vtn_ssa_value(struct vtn_builder *b, uint32_t value_id);
899 struct vtn_ssa_value *ssa);
921 struct vtn_ssa_value *vtn_create_ssa_value(struct vtn_builder *b,
924 struct vtn_ssa_value *vtn_ssa_transpose(struct vtn_builder *b,
925 struct vtn_ssa_value *src);
[all …]
Dspirv_to_nir.c199 static struct vtn_ssa_value *
202 struct vtn_ssa_value *val = rzalloc(b, struct vtn_ssa_value); in vtn_undef_ssa_value()
211 val->elems = ralloc_array(b, struct vtn_ssa_value *, elems); in vtn_undef_ssa_value()
228 struct vtn_ssa_value *
237 struct vtn_ssa_value *val = rzalloc(b, struct vtn_ssa_value); in vtn_const_ssa_value()
253 val->elems = ralloc_array(b, struct vtn_ssa_value *, elems); in vtn_const_ssa_value()
273 struct vtn_ssa_value *
274 vtn_ssa_value(struct vtn_builder *b, uint32_t value_id) in vtn_ssa_value() function
289 struct vtn_ssa_value *ssa = in vtn_ssa_value()
301 struct vtn_ssa_value *ssa) in vtn_push_ssa_value()
[all …]
Dvtn_glsl450.c102 build_mat_det(struct vtn_builder *b, struct vtn_ssa_value *src) in build_mat_det()
113 static struct vtn_ssa_value *
114 matrix_inverse(struct vtn_builder *b, struct vtn_ssa_value *src) in matrix_inverse()
138 struct vtn_ssa_value *val = vtn_create_ssa_value(b, src->type); in matrix_inverse()
326 struct vtn_ssa_value *vtn_src = vtn_ssa_value(b, w[i + 5]); in handle_glsl450_alu()
331 struct vtn_ssa_value *dest = vtn_create_ssa_value(b, dest_type); in handle_glsl450_alu()
364 struct vtn_ssa_value *whole = vtn_create_ssa_value(b, i_ptr->type->type); in handle_glsl450_alu()
606 struct vtn_ssa_value *exp = vtn_create_ssa_value(b, i_ptr->type->type); in handle_glsl450_alu()
709 vtn_push_nir_ssa(b, w[2], build_mat_det(b, vtn_ssa_value(b, w[5]))); in vtn_handle_glsl450_instruction()
714 vtn_push_ssa_value(b, w[2], matrix_inverse(b, vtn_ssa_value(b, w[5]))); in vtn_handle_glsl450_instruction()
Dvtn_cfg.c82 struct vtn_ssa_value *value, in vtn_ssa_value_add_to_call_params()
99 struct vtn_ssa_value *value, in vtn_ssa_value_load_function_param()
137 vtn_ssa_value_add_to_call_params(b, vtn_ssa_value(b, w[4 + i]), in vtn_handle_function_call()
270 struct vtn_ssa_value *value = vtn_create_ssa_value(b, type->type); in vtn_cfg_handle_prepass_instruction()
968 struct vtn_ssa_value *src = vtn_ssa_value(b, w[i]); in vtn_handle_phi_second_pass()
1089 struct vtn_ssa_value *src = vtn_ssa_value(b, block->branch[1]); in vtn_emit_ret_store()
1332 nir_ssa_def *cond = vtn_ssa_value(b, block->branch[1])->def; in vtn_emit_cf_func_unstructured()
Dvtn_variables.c207 nir_ssa_def *ssa = vtn_ssa_value(b, link.id)->def; in vtn_access_link_as_ssa()
492 struct vtn_ssa_value *inout, in _vtn_local_load_store()
546 struct vtn_ssa_value *
551 struct vtn_ssa_value *val = vtn_create_ssa_value(b, src_tail->type); in vtn_local_load()
563 vtn_local_store(struct vtn_builder *b, struct vtn_ssa_value *src, in vtn_local_store()
569 struct vtn_ssa_value *val = vtn_create_ssa_value(b, dest_tail->type); in vtn_local_store()
599 struct vtn_ssa_value **inout) in _vtn_variable_load_store()
694 struct vtn_ssa_value *
698 struct vtn_ssa_value *val = vtn_create_ssa_value(b, src->type->type); in vtn_variable_load()
704 vtn_variable_store(struct vtn_builder *b, struct vtn_ssa_value *src, in vtn_variable_store()
[all …]
Dvtn_opencl.c220 struct vtn_ssa_value *ssa = vtn_ssa_value(b, w_src[i]); in handle_instr()
637 struct vtn_ssa_value *comps[NIR_MAX_VEC_COMPONENTS]; in _handle_v_load_store()
677 struct vtn_ssa_value *ssa = vtn_create_ssa_value(b, glsl_scalar_type(base_type)); in _handle_v_load_store()
678 struct vtn_ssa_value *val = vtn_ssa_value(b, w[5]); in _handle_v_load_store()
821 nir_ssa_def *field_src = vtn_ssa_value(b, w_src[i])->def; in handle_printf()
/third_party/mesa3d/docs/relnotes/
D12.0.6.rst94 - spirv: Move cursor before calling vtn_ssa_value() in phi 2nd pass.
D13.0.4.rst171 - spirv: Move cursor before calling vtn_ssa_value() in phi 2nd pass.
D20.2.0.rst2606 - spirv: Simplify vtn_ssa_value creation
2607 - spirv: Hand-roll fewer vtn_ssa_value creations
2613 - spirv: More heavily use vtn_ssa_value in function parameter handling