/aosp_15_r20/external/mesa3d/src/compiler/glsl/ |
H A D | lower_precision.cpp | 160 switch (glsl_without_array(type)->base_type) { in can_lower_type() 426 assert(glsl_type_is_image(glsl_without_array(resource->type))); in handle_call() 469 if (var && glsl_type_is_sampler(glsl_without_array(var->type))) { in handle_call() 1020 glsl_without_array(var->type)->base_type == GLSL_TYPE_FLOAT))) || in visit() 1021 !glsl_type_is_32bit(glsl_without_array(var->type)) || in visit() 1055 assert(glsl_type_is_32bit(glsl_without_array(ir->type))); in fix_types_in_deref_chain() 1065 assert(glsl_type_is_32bit(glsl_without_array(deref_array->array->type))); in fix_types_in_deref_chain() 1117 glsl_type_is_16bit(glsl_without_array(var->type)) != in visit_enter() 1118 glsl_type_is_16bit(glsl_without_array(rhs_var->type)))) && in visit_enter() 1121 glsl_type_is_16bit(glsl_without_array(var->type)) && in visit_enter() [all …]
|
H A D | gl_nir_lower_named_interface_blocks.c | 157 const struct glsl_type * iface_t = glsl_without_array(var->type); in flatten_named_interface_deref() 256 const struct glsl_type * iface_t = glsl_without_array(var->type); in lower_named_interface_blocks() 324 glsl_type_is_scalar(glsl_without_array(var->type)); in lower_named_interface_blocks() 331 glsl_type_is_scalar(glsl_without_array(var->type)); in lower_named_interface_blocks() 340 glsl_type_is_scalar(glsl_without_array(var->type)); in lower_named_interface_blocks() 347 glsl_type_is_scalar(glsl_without_array(var->type)); in lower_named_interface_blocks() 351 const struct glsl_type * iface_t = glsl_without_array(var->type); in lower_named_interface_blocks()
|
H A D | gl_nir_link_uniform_blocks.c | 406 const struct glsl_type *t_without_array = glsl_without_array(type); in fill_individual_variable() 407 if (glsl_type_is_matrix(glsl_without_array(t_without_array))) { in fill_individual_variable() 558 type == glsl_without_array(blk_type)) { in iterate_type_fill_variables() 615 glsl_without_array(var->type) == var->interface_type; in process_block() 780 const struct glsl_type *type = glsl_without_array(blk_type); in count_block() 817 glsl_without_array(var->type) == var->interface_type ? in gather_packed_block_info() 828 if (glsl_get_ifc_packing(glsl_without_array(b->type)) == in gather_packed_block_info() 913 if (glsl_type_is_interface(glsl_without_array(var->type))) { in allocate_uniform_blocks() 950 if (glsl_get_ifc_packing(glsl_without_array(b->type)) == in allocate_uniform_blocks() 992 (glsl_get_ifc_packing(glsl_without_array(b->type)) == in allocate_uniform_blocks() [all …]
|
H A D | gl_nir_link_uniforms.c | 114 glsl_get_base_type(glsl_without_array(var->type)) == GLSL_TYPE_SUBROUTINE || in update_array_sizes() 662 num_params *= glsl_get_matrix_columns(glsl_without_array(type)); in add_parameter() 664 bool is_dual_slot = glsl_type_is_dual_slot(glsl_without_array(type)); in add_parameter() 674 unsigned dmul = glsl_type_is_64bit(glsl_without_array(type)) ? 2 : 1; in add_parameter() 675 unsigned comps = glsl_get_vector_elements(glsl_without_array(type)) * dmul; in add_parameter() 684 if (glsl_type_is_16bit(glsl_without_array(type))) in add_parameter() 779 const struct glsl_type *type_no_array = glsl_without_array(type); in update_uniforms_shader_info() 981 const struct glsl_type *type_no_array = glsl_without_array(type); in find_and_update_named_uniform_storage() 1356 const struct glsl_type *type_no_array = glsl_without_array(type); in nir_link_uniform() 1455 glsl_without_array(state->current_var->type) == state->current_var->interface_type && in nir_link_uniform() [all …]
|
H A D | gl_nir_link_varyings.c | 423 const struct glsl_type *type_without_array = glsl_without_array(type); in check_location_aliasing() 448 if (glsl_type_is_struct(glsl_without_array(info->var->type)) || in check_location_aliasing() 702 const struct glsl_type *type_without_array = glsl_without_array(type); in validate_explicit_variable_location() 1256 glsl_without_array(assigned[i]->type); in assign_attribute_or_color_locations() 1258 glsl_without_array(var->type); in assign_attribute_or_color_locations() 1330 if (glsl_type_is_dual_slot(glsl_without_array(var->type))) in assign_attribute_or_color_locations() 1405 if (glsl_type_is_dual_slot(glsl_without_array(to_assign[i].var->type))) in assign_attribute_or_color_locations() 1462 } else if (glsl_type_is_struct(glsl_without_array(t)) || in create_xfb_varying_names() 1463 glsl_type_is_interface(glsl_without_array(t)) || in create_xfb_varying_names() 1536 const struct glsl_type *type_wa = glsl_without_array(type); in process_xfb_layout_qualifiers() [all …]
|
H A D | ast_array_index.cpp | 251 } else if (glsl_type_is_interface(glsl_without_array(array->type)) in _mesa_ast_array_index_to_hir() 308 if (glsl_type_is_sampler(glsl_without_array(array->type))) { in _mesa_ast_array_index_to_hir() 342 if (state->es_shader && glsl_type_is_image(glsl_without_array(array->type))) { in _mesa_ast_array_index_to_hir()
|
H A D | gl_nir_link_interface_blocks.c | 106 return glsl_without_array(var->type) == var->interface_type; in is_interface_instance() 249 glsl_get_type_name(glsl_without_array(var->interface_type))); in ifc_lookup() 277 glsl_get_type_name(glsl_without_array(var->interface_type)), ifc_var); in ifc_store()
|
H A D | link_interface_blocks.cpp | 214 glsl_get_type_name(glsl_without_array(var->get_interface_type()))); in lookup() 236 glsl_get_type_name(glsl_without_array(var->get_interface_type())), var); in store()
|
H A D | gl_nir_lower_packed_varyings.c | 248 type = glsl_without_array(type); in lower_packed_varying_needs_lowering() 457 const struct glsl_type *packed_type = glsl_without_array(packed_var->type); in bitwise_assign_unpack() 532 const struct glsl_type *type = glsl_without_array(deref->type); in create_store_deref() 585 unsigned dmul = glsl_type_is_64bit(glsl_without_array(type)) ? 2 : 1; in lower_arraylike()
|
H A D | gl_nir_link_uniform_initializers.c | 193 const struct glsl_type *t_without_array = glsl_without_array(type); in set_uniform_initializer() 290 glsl_without_array(var->type); in gl_nir_set_uniform_initializers()
|
/aosp_15_r20/external/mesa3d/src/compiler/nir/ |
H A D | nir_lower_io_arrays_to_elements.c | 68 …num_elements *= glsl_type_is_matrix(glsl_without_array((*p)->type)) ? glsl_get_matrix_columns(glsl… in get_io_offset() 97 …num_elements *= glsl_type_is_matrix(glsl_without_array(type)) ? glsl_get_matrix_columns(glsl_witho… in get_array_elements() 144 const struct glsl_type *type = glsl_without_array(element->type); in lower_array() 319 glsl_type_is_struct_or_ifc(glsl_without_array(type))) in lower_io_arrays_to_elements()
|
H A D | nir_lower_io_to_vector.c | 113 a_type_tail = glsl_without_array(a_type_tail); in variables_can_merge() 114 b_type_tail = glsl_without_array(b_type_tail); in variables_can_merge() 181 if (!glsl_type_is_vector_or_scalar(glsl_without_array(var->type))) { in get_flat_type() 187 glsl_without_array(get_per_vertex_type(shader, var, NULL))); in get_flat_type() 256 glsl_get_components(glsl_without_array(var->type)); in create_new_io_vars()
|
H A D | nir_opt_access.c | 98 if (glsl_get_sampler_dim(glsl_without_array(var->type)) == in gather_intrinsic() 159 const struct glsl_type *type = glsl_without_array(var->type); in process_variable() 256 glsl_get_sampler_dim(glsl_without_array(var->type)) == GLSL_SAMPLER_DIM_BUF; in process_intrinsic()
|
H A D | nir_linking_helpers.c | 73 if (glsl_type_is_struct_or_ifc(glsl_without_array(var->type))) in get_num_components() 76 return glsl_get_vector_elements(glsl_without_array(var->type)); in get_num_components() 355 …glsl_type_is_vector_or_scalar(glsl_without_array(type)) ? glsl_get_vector_elements(glsl_without_ar… in get_unmoveable_components_masks() 357 bool dual_slot = glsl_type_is_dual_slot(glsl_without_array(type)); in get_unmoveable_components_masks() 359 unsigned dmul = glsl_type_is_64bit(glsl_without_array(type)) ? 2 : 1; in get_unmoveable_components_masks() 386 glsl_type_is_32bit(glsl_without_array(type)); in get_unmoveable_components_masks()
|
H A D | nir_lower_readonly_images_to_tex.c | 48 if (!glsl_type_is_image(glsl_without_array(type))) in replace_image_type_with_texture() 55 if (glsl_type_is_image(glsl_without_array(type))) { in replace_image_type_with_texture()
|
/aosp_15_r20/external/mesa3d/src/gallium/drivers/r600/sfn/ |
H A D | sfn_nir_lower_64bit.cpp | 374 unsigned old_components = glsl_get_components(glsl_without_array(old_var->type)); in split_load_deref_array() 399 unsigned old_components = glsl_get_components(glsl_without_array(old_var->type)); in split_store_deref_array() 436 unsigned old_components = glsl_get_components(glsl_without_array(old_var->type)); in split_store_deref_var() 482 assert(glsl_get_components(glsl_without_array(old_var->type)) > 2); in get_var_pair() 489 var2->type = glsl_dvec_type(glsl_get_components(glsl_without_array(old_var->type)) - 2); in get_var_pair() 821 if (glsl_get_bit_size(glsl_without_array(var->type)) == 64) in filter() 823 return (glsl_get_components(glsl_without_array(var->type)) != intr->num_components); in filter() 934 unsigned components = glsl_get_components(glsl_without_array(var->type)); in load_deref_64_to_vec2() 935 if (glsl_get_bit_size(glsl_without_array(var->type)) == 64) { in load_deref_64_to_vec2() 953 deref->type = glsl_without_array(deref_array->type); in load_deref_64_to_vec2() [all …]
|
H A D | sfn_nir_lower_fs_out_to_vector.cpp | 228 if (!glsl_type_is_vector_or_scalar(glsl_without_array(var->type))) in var_can_rewrite() 231 if (glsl_get_bit_size(glsl_without_array(var->type)) != 32) in var_can_rewrite() 342 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() 374 assert(glsl_get_vector_elements(glsl_without_array(var2->type)) < 4); in vec_instr_stack_pop()
|
H A D | sfn_nir_vectorize_vs_inputs.c | 44 if (!glsl_type_is_vector_or_scalar(glsl_without_array(var->type))) in r600_variable_can_rewrite() 48 if (glsl_get_bit_size(glsl_without_array(var->type)) != 32) in r600_variable_can_rewrite() 171 unsigned num_comps = glsl_get_vector_elements(glsl_without_array(new_var->type)); in r600_vec_instr_stack_pop() 173 unsigned old_num_comps = glsl_get_vector_elements(glsl_without_array(var->type)); in r600_vec_instr_stack_pop()
|
/aosp_15_r20/external/mesa3d/src/microsoft/compiler/ |
H A D | dxil_enums.c | 33 type = glsl_without_array(type); in dxil_get_prog_sig_comp_type() 73 type = glsl_without_array(type); in dxil_get_comp_type() 131 type = glsl_without_array(type); in dxil_get_resource_kind()
|
H A D | dxil_nir_lower_int_cubemaps.c | 32 type = glsl_without_array(type); in type_needs_lowering() 476 const struct glsl_type *new_type = glsl_without_array(type); in make_2darray_from_cubemap_with_array() 477 …ype != type ? glsl_array_type(make_2darray_from_cubemap_with_array(glsl_without_array(type), is_im… in make_2darray_from_cubemap_with_array() 518 glsl_type_is_image(glsl_without_array(deref->type))); in lower_cube_image_deref() 549 bool is_image = glsl_type_is_image(glsl_without_array(var->type)); in dxil_nir_lower_int_cubemaps()
|
H A D | dxil_nir.c | 382 assert(!glsl_type_is_struct(glsl_without_array(var->type))); in flatten_var_array_types() 383 const struct glsl_type *matrix_type = glsl_without_array(var->type); in flatten_var_array_types() 444 const struct glsl_type *var_scalar_type = glsl_without_array(var->type); in lower_deref_bit_size() 501 const struct glsl_type *type = glsl_without_array(var->type); in lower_var_bit_size_types() 1261 glsl_without_array(type)), type); in get_textures_for_sampler_type() 1295 if (glsl_type_is_bare_sampler(glsl_without_array(var->type)) && in redirect_sampler_derefs() 1296 glsl_sampler_type_is_shadow(glsl_without_array(var->type)) == in redirect_sampler_derefs() 1326 if (glsl_type_is_bare_sampler(glsl_without_array(old_var->type)) && in redirect_sampler_derefs() 1327 glsl_sampler_type_is_shadow(glsl_without_array(old_var->type)) == in redirect_sampler_derefs() 1385 !glsl_type_is_bare_sampler(glsl_without_array(var->type))) { in redirect_texture_derefs() [all …]
|
/aosp_15_r20/external/mesa3d/src/compiler/ |
H A D | glsl_types.c | 1856 t = glsl_without_array(t); in glsl_get_struct_location_offset() 1862 const glsl_type *wa = glsl_without_array(st); in glsl_get_struct_location_offset() 1956 if (glsl_type_is_struct(glsl_without_array(t)) || in glsl_varying_count() 1957 glsl_type_is_interface(glsl_without_array(t)) || in glsl_varying_count() 2125 if (glsl_type_is_matrix(glsl_without_array(t))) { in glsl_get_std140_size() 2131 element_type = glsl_without_array(t); in glsl_get_std140_size() 2166 if (glsl_type_is_struct(glsl_without_array(t))) { in glsl_get_std140_size() 2167 stride = glsl_get_std140_size(glsl_without_array(t), row_major); in glsl_get_std140_size() 2170 glsl_get_std140_base_alignment(glsl_without_array(t), row_major); in glsl_get_std140_size() 2522 if (glsl_type_is_matrix(glsl_without_array(t))) { in glsl_get_std430_size() [all …]
|
/aosp_15_r20/external/mesa3d/src/intel/compiler/ |
H A D | brw_nir_lower_cooperative_matrix.c | 125 const struct glsl_type *slice_element_type = glsl_without_array(slice_type); in get_packing_factor() 542 assert(glsl_type_is_cmat(glsl_without_array(deref->var->type))); in lower_cmat_deref() 779 const struct glsl_type *mat_type = glsl_without_array(var->type); in create_slice_var() 813 if (glsl_type_is_cmat(glsl_without_array(var->type))) in brw_nir_lower_cmat() 818 if (glsl_type_is_cmat(glsl_without_array(var->type))) in brw_nir_lower_cmat()
|
/aosp_15_r20/external/mesa3d/src/gallium/auxiliary/nir/ |
H A D | nir_to_tgsi_info.c | 371 glsl_get_base_type(glsl_without_array(variable->type)); in nir_tgsi_scan_shader() 458 unsigned vector_elements = glsl_get_vector_elements(glsl_without_array(variable->type)); in nir_tgsi_scan_shader() 463 if (glsl_type_is_64bit(glsl_without_array(variable->type))) { in nir_tgsi_scan_shader() 464 if (glsl_type_is_dual_slot(glsl_without_array(variable->type)) && k % 2) { in nir_tgsi_scan_shader()
|
/aosp_15_r20/external/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_compiler.c | 1540 …unsigned idx = glsl_get_explicit_stride(glsl_get_struct_field(glsl_without_array(var->type), 0)) >… in get_bo_vars() 1823 if (glsl_type_is_64bit(glsl_without_array(var->type))) in find_var_with_location_frac() 1886 type = glsl_without_array(arraytype); in unroll_struct_type() 1901 const struct glsl_type *type = glsl_without_array(var->type); in get_slot_components() 1910 unsigned num_components = glsl_get_components(glsl_without_array(type)); in get_slot_components() 1923 if (glsl_base_type_is_64bit(glsl_get_base_type(glsl_without_array(type)))) in get_slot_components() 1996 if (glsl_type_is_64bit(glsl_without_array(var->type))) in update_so_info() 2316 const struct glsl_type *bare_type = glsl_without_array(var->type); in get_bo_var() 2659 …uint32_t mask = BITFIELD_MASK(glsl_get_vector_elements(glsl_without_array(var->type))) << var->dat… in assign_track_slot_mask() 3532 const struct glsl_type *type = glsl_without_array(var->type); in rewrite_tex_dest() [all …]
|