Home
last modified time | relevance | path

Searched refs:glsl_get_vector_elements (Results 1 – 25 of 56) sorted by relevance

123

/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_lower_packed_varyings.c247 if (glsl_get_vector_elements(type) == 4 && !glsl_type_is_64bit(type)) in needs_lowering()
425 assert(glsl_get_vector_elements(unpacked_type) <= 2); in bitwise_assign_pack()
426 if (glsl_get_vector_elements(unpacked_type) == 2) { in bitwise_assign_pack()
427 assert(glsl_get_vector_elements(packed_var->type) == 4); in bitwise_assign_pack()
512 assert(glsl_get_vector_elements(unpacked_type) <= 2); in bitwise_assign_unpack()
513 if (glsl_get_vector_elements(unpacked_type) == 2) { in bitwise_assign_unpack()
514 assert(glsl_get_vector_elements(packed_type) == 4); in bitwise_assign_unpack()
573 unsigned comps = glsl_get_vector_elements(type); in create_store_deref()
726 } else if (glsl_get_vector_elements(type) * dmul + fine_location % 4 > 4) { in lower_varying()
753 right_components = glsl_get_vector_elements(type) - left_components; in lower_varying()
[all …]
Dgl_nir_lower_xfb_varying.c129 unsigned components = glsl_get_vector_elements(type); in copy_to_new_var()
Dgl_nir_link_uniform_initializers.c120 const unsigned n_rows = glsl_get_vector_elements(type); in copy_constant_to_storage()
Dgl_nir_link_varyings.c329 const unsigned vector_elements = glsl_get_vector_elements(element_type); in xfb_decl_assign_location()
383 xfb_decl->vector_elements = glsl_get_vector_elements(xfb_decl->matched_candidate->type); in xfb_decl_assign_location()
1639 } else if (offset + glsl_get_vector_elements(type) > 4) { in varying_matches_store_locations()
2052 return glsl_get_vector_elements(glsl_without_array(var->type)); in get_num_components()
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_copy_prop_vars.c194 nir_component_mask_t mask = (1 << glsl_get_vector_elements(payload->type)) - 1; in gather_vars_written()
242 nir_intrinsic_write_mask(intrin) : (1 << glsl_get_vector_elements(dst->type)) - 1; in gather_vars_written()
496 assert(index < glsl_get_vector_elements(entry->dst.instr->type)); in load_element_from_ssa_entry_value()
556 unsigned num_components = glsl_get_vector_elements(type); in load_from_ssa_entry_value()
804 unsigned num_components = glsl_get_vector_elements(entry->dst.instr->type); in print_copy_entry()
936 unsigned vec_comps = glsl_get_vector_elements(vec_src.instr->type); in copy_prop_vars_block()
1027 unsigned vec_comps = glsl_get_vector_elements(vec_dst.instr->type); in copy_prop_vars_block()
1075 unsigned num_components = glsl_get_vector_elements(dst.instr->type); in copy_prop_vars_block()
1152 nir_component_mask_t full_mask = (1 << glsl_get_vector_elements(payload.instr->type)) - 1; in copy_prop_vars_block()
1175 unsigned num_components = glsl_get_vector_elements(dst.instr->type); in copy_prop_vars_block()
[all …]
Dnir_opt_combine_stores.c128 unsigned num_components = glsl_get_vector_elements(combo->dst->type); in combine_stores()
238 if (index >= glsl_get_vector_elements(vec_dst->type)) { in update_combined_store()
Dnir_opt_large_constants.c74 const unsigned num_components = glsl_get_vector_elements(deref->type); in build_constant_load()
111 const unsigned num_components = glsl_get_vector_elements(deref->type); in handle_constant_store()
Dnir_lower_blend.c408 const unsigned num_components = glsl_get_vector_elements(var->type); in nir_lower_blend_store()
461 const unsigned num_components = glsl_get_vector_elements(deref->type); in nir_lower_blend_instr()
Dnir_opt_dead_write_vars.c234 nir_component_mask_t mask = (1 << glsl_get_vector_elements(dst->type)) - 1; in remove_dead_write_vars_local()
Dnir_lower_variable_initializers.c33 glsl_get_vector_elements(deref->type), in build_constant_load()
Dnir_lower_vars_to_ssa.c632 glsl_get_vector_elements(node->type)); in rename_variables()
793 glsl_get_vector_elements(node->type), in nir_lower_vars_to_ssa_impl()
Dnir_opt_memcpy.c155 assert(data->num_components == glsl_get_vector_elements(dst->type)); in try_lower_memcpy()
Dnir_deref.c1279 unsigned parent_bytes = glsl_get_vector_elements(parent->type) * in is_vector_bitcast_deref()
1320 const unsigned new_num_comps = glsl_get_vector_elements(parent->type); in opt_load_vec_deref()
1362 const unsigned new_num_comps = glsl_get_vector_elements(parent->type); in opt_store_vec_deref()
Dnir_lower_locals_to_regs.c121 reg->num_components = glsl_get_vector_elements(deref->type); in get_reg_for_deref()
/third_party/mesa3d/src/compiler/spirv/
Dvtn_alu.c72 unsigned src0_rows = glsl_get_vector_elements(src0->type); in matrix_multiply()
1045 glsl_get_vector_elements(vtn_src[0]->type) != in vtn_handle_integer_dot()
1046 glsl_get_vector_elements(vtn_src[1]->type), in vtn_handle_integer_dot()
1071 if (glsl_get_vector_elements(vtn_src[0]->type) == 4 && in vtn_handle_integer_dot()
1076 } else if (glsl_get_vector_elements(vtn_src[0]->type) == 2 && in vtn_handle_integer_dot()
1152 glsl_get_vector_elements(vtn_src[0]->type); in vtn_handle_integer_dot()
1315 glsl_get_vector_elements(type->type) * glsl_get_bit_size(type->type), in vtn_handle_bitcast()
Dvtn_amd.c214 intrin->num_components = glsl_get_vector_elements(deref->type); in vtn_handle_amd_shader_explicit_vertex_parameter_instruction()
216 glsl_get_vector_elements(deref->type), in vtn_handle_amd_shader_explicit_vertex_parameter_instruction()
Dvtn_glsl450.c104 unsigned size = glsl_get_vector_elements(src->type); in build_mat_det()
117 unsigned size = glsl_get_vector_elements(src->type); in matrix_inverse()
689 intrin->num_components = glsl_get_vector_elements(deref->type); in handle_glsl450_interpolation()
691 glsl_get_vector_elements(deref->type), in handle_glsl450_interpolation()
Dspirv_to_nir.c206 unsigned num_components = glsl_get_vector_elements(val->type); in vtn_undef_ssa_value()
241 unsigned num_components = glsl_get_vector_elements(val->type); in vtn_const_ssa_value()
338 vtn_fail_if(def->num_components != glsl_get_vector_elements(type->type) || in vtn_push_nir_ssa()
1490 glsl_get_vector_elements(base->type), in vtn_handle_type()
2079 unsigned len0 = glsl_get_vector_elements(v0->type->type); in vtn_handle_constant()
2080 unsigned len1 = glsl_get_vector_elements(v1->type->type); in vtn_handle_constant()
2195 unsigned num_components = glsl_get_vector_elements(val->type->type); in vtn_handle_constant()
3118 vtn_assert(glsl_get_vector_elements(ret_type->type) == in vtn_handle_texture()
3155 unsigned result_size = glsl_get_vector_elements(ret_type->type); in vtn_handle_texture()
3555 unsigned dest_components = glsl_get_vector_elements(type->type); in vtn_handle_image()
[all …]
Dvtn_opencl.c401 ret->length = glsl_get_vector_elements(type); in get_vtn_type_for_glsl_type()
427 glsl_get_vector_elements(t->type))); in get_signed_type()
632 unsigned components = glsl_get_vector_elements(type->type); in _handle_v_load_store()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir_lower_fs_out_to_vector.cpp342 unsigned num_comps = glsl_get_vector_elements(glsl_without_array(new_var->type)); in vec_instr_stack_pop()
343 unsigned old_num_comps = glsl_get_vector_elements(glsl_without_array(var->type)); in vec_instr_stack_pop()
376 assert(glsl_get_vector_elements(glsl_without_array(var2->type)) < 4); in vec_instr_stack_pop()
Dsfn_nir_vectorize_vs_inputs.c195 glsl_get_vector_elements(glsl_without_array(new_var->type)); in r600_vec_instr_stack_pop()
198 glsl_get_vector_elements(glsl_without_array(var->type)); in r600_vec_instr_stack_pop()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_nir.cpp205 comps = glsl_get_vector_elements(type); in st_nir_assign_uniform_locations()
277 unsigned length = glsl_get_vector_elements(type); in shared_type_info()
300 uint32_t mask = BITFIELD_MASK(glsl_get_vector_elements(arr->type)); in zero_array_members()
486 comps = glsl_get_vector_elements(type); in st_glsl_to_nir_post_opts()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_compiler.c132 …_type_is_64bit(var->type) || !glsl_type_is_vector(var->type) || glsl_get_vector_elements(var->type… in lower_64bit_vertex_attribs_instr()
141 unsigned total_num_components = glsl_get_vector_elements(var->type); in lower_64bit_vertex_attribs_instr()
143 …var2->type = glsl_vector_type(glsl_get_base_type(var->type), glsl_get_vector_elements(var->type) -… in lower_64bit_vertex_attribs_instr()
192 unsigned num_components = glsl_get_vector_elements(var->type); in lower_64bit_uint_attribs_instr()
713 …(glsl_type_is_array(var->type) ? glsl_array_size(var->type) : glsl_get_vector_elements(var->type))… in find_var_with_location_frac()
990 unsigned num_components = glsl_get_vector_elements(split[0]->type); in lower_attrib()
1022 unsigned num_components = glsl_get_vector_elements(var->type); in decompose_attribs()
1572 unsigned vec_components = glsl_get_vector_elements(type); in rewrite_64bit_type()
1577 num_components = glsl_get_vector_elements(type) * 2; in rewrite_64bit_type()
1699 unsigned vec_components = glsl_get_vector_elements(matrix); in lower_64bit_vars()
[all …]
/third_party/mesa3d/src/compiler/
Dnir_types.h89 unsigned glsl_get_vector_elements(const struct glsl_type *type);
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_shader.c213 unsigned length = glsl_get_vector_elements(type); in shared_type_info()

123