Home
last modified time | relevance | path

Searched refs:glsl_without_array (Results 1 – 25 of 55) sorted by relevance

123

/third_party/mesa3d/src/microsoft/compiler/
Ddxil_enums.c33 type = glsl_without_array(type); in dxil_get_prog_sig_comp_type()
55 type = glsl_without_array(type); in dxil_get_comp_type()
80 type = glsl_without_array(type); in dxil_get_resource_kind()
Ddxil_nir_lower_int_cubemaps.c32 type = glsl_without_array(type); in type_needs_lowering()
502 const struct glsl_type *new_type = glsl_without_array(type); in make_2darray_from_cubemap_with_array()
503 …ype != type ? glsl_array_type(make_2darray_from_cubemap_with_array(glsl_without_array(type), is_im… in make_2darray_from_cubemap_with_array()
544 glsl_type_is_image(glsl_without_array(deref->type))); in lower_cube_image_deref()
575 bool is_image = glsl_type_is_image(glsl_without_array(var->type)); in dxil_nir_lower_int_cubemaps()
Ddxil_nir.c1468 glsl_without_array(type)), type); in get_textures_for_sampler_type()
1502 if (glsl_type_is_bare_sampler(glsl_without_array(var->type)) && in redirect_sampler_derefs()
1503 glsl_sampler_type_is_shadow(glsl_without_array(var->type)) == in redirect_sampler_derefs()
1533 if (glsl_type_is_bare_sampler(glsl_without_array(old_var->type)) && in redirect_sampler_derefs()
1534 glsl_sampler_type_is_shadow(glsl_without_array(old_var->type)) == in redirect_sampler_derefs()
1592 !glsl_type_is_bare_sampler(glsl_without_array(var->type))) { in redirect_texture_derefs()
1614 if (glsl_type_is_texture(glsl_without_array(old_var->type)) || in redirect_texture_derefs()
1615 glsl_type_is_image(glsl_without_array(old_var->type))) { in redirect_texture_derefs()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_io_arrays_to_elements.c69 num_elements *= glsl_type_is_matrix(glsl_without_array((*p)->type)) ? in get_io_offset()
70 glsl_get_matrix_columns(glsl_without_array((*p)->type)) : 1; in get_io_offset()
100 num_elements *= glsl_type_is_matrix(glsl_without_array(type)) ? in get_array_elements()
101 glsl_get_matrix_columns(glsl_without_array(type)) : 1; in get_array_elements()
148 const struct glsl_type *type = glsl_without_array(element->type); in lower_array()
328 glsl_type_is_struct_or_ifc(glsl_without_array(type))) in lower_io_arrays_to_elements()
Dnir_opt_access.c109 if (glsl_get_sampler_dim(glsl_without_array(var->type)) == in gather_intrinsic()
190 const struct glsl_type *type = glsl_without_array(var->type); in process_variable()
287 glsl_get_sampler_dim(glsl_without_array(var->type)) == GLSL_SAMPLER_DIM_BUF; in process_intrinsic()
Dnir_lower_io_to_vector.c112 a_type_tail = glsl_without_array(a_type_tail); in variables_can_merge()
113 b_type_tail = glsl_without_array(b_type_tail); in variables_can_merge()
180 if (!glsl_type_is_vector_or_scalar(glsl_without_array(var->type))) { in get_flat_type()
186 glsl_without_array(get_per_vertex_type(shader, var, NULL))); in get_flat_type()
254 glsl_get_components(glsl_without_array(var->type)); in create_new_io_vars()
Dnir_lower_readonly_images_to_tex.c48 if (glsl_type_is_texture(glsl_without_array(type))) in replace_image_type_with_sampler()
55 if (!glsl_type_is_texture(glsl_without_array(type))) { in replace_image_type_with_sampler()
Dnir_linking_helpers.c74 if (glsl_type_is_struct_or_ifc(glsl_without_array(var->type))) in get_num_components()
77 return glsl_get_vector_elements(glsl_without_array(var->type)); in get_num_components()
330 glsl_type_is_vector_or_scalar(glsl_without_array(type)) ? in get_unmoveable_components_masks()
331 glsl_get_vector_elements(glsl_without_array(type)) : 4; in get_unmoveable_components_masks()
333 bool dual_slot = glsl_type_is_dual_slot(glsl_without_array(type)); in get_unmoveable_components_masks()
335 unsigned dmul = glsl_type_is_64bit(glsl_without_array(type)) ? 2 : 1; in get_unmoveable_components_masks()
362 glsl_type_is_32bit(glsl_without_array(type)); in get_unmoveable_components_masks()
Dnir_lower_io_to_scalar.c462 if (glsl_type_is_64bit(glsl_without_array(var->type))) in nir_lower_io_to_scalar_early_instr()
481 if (glsl_type_is_matrix(glsl_without_array(var->type)) || in nir_lower_io_to_scalar_early_instr()
482 glsl_type_is_struct_or_ifc(glsl_without_array(var->type))) in nir_lower_io_to_scalar_early_instr()
Dnir_lower_const_arrays_to_uniforms.c146 if (!glsl_type_is_32bit(glsl_without_array(var->type)) && in lower_const_array_to_uniform()
147 !glsl_type_is_64bit(glsl_without_array(var->type))) in lower_const_array_to_uniform()
Dnir_lower_uniforms_to_ubo.c140 if (glsl_without_array(var->type) == var->interface_type && in nir_lower_uniforms_to_ubo()
Dnir_lower_tex_shadow.c64 return glsl_array_type(strip_shadow(glsl_without_array(type)), in strip_shadow_with_array()
Dnir_split_vars.c109 const struct glsl_type *struct_type = glsl_without_array(type); in init_field_for_type()
168 if (!glsl_type_is_struct_or_ifc(glsl_without_array(var->type))) in split_var_list_structs()
249 glsl_without_array(tail_field->type)); in split_struct_derefs_impl()
575 glsl_type_is_matrix(glsl_without_array(var->type))) { in split_var_list_arrays()
1406 glsl_type_is_matrix(glsl_without_array(var->type)) && in shrink_vec_var_list()
/third_party/mesa3d/src/compiler/glsl/
Dgl_nir_link_uniforms.c123 glsl_get_base_type(glsl_without_array(var->type)) == GLSL_TYPE_SUBROUTINE || in update_array_sizes()
681 num_params *= glsl_get_matrix_columns(glsl_without_array(type)); in add_parameter()
683 bool is_dual_slot = glsl_type_is_dual_slot(glsl_without_array(type)); in add_parameter()
693 unsigned dmul = glsl_type_is_64bit(glsl_without_array(type)) ? 2 : 1; in add_parameter()
694 unsigned comps = glsl_get_vector_elements(glsl_without_array(type)) * dmul; in add_parameter()
703 if (glsl_type_is_16bit(glsl_without_array(type))) in add_parameter()
770 const struct glsl_type *type_no_array = glsl_without_array(type); in update_uniforms_shader_info()
978 const struct glsl_type *type_no_array = glsl_without_array(type); in find_and_update_named_uniform_storage()
1353 const struct glsl_type *type_no_array = glsl_without_array(type); in nir_link_uniform()
1452 glsl_without_array(state->current_var->type) == state->current_var->interface_type && in nir_link_uniform()
[all …]
Dgl_nir_link_varyings.c96 } else if (glsl_type_is_struct(glsl_without_array(t)) || in create_xfb_varying_names()
97 glsl_type_is_interface(glsl_without_array(t)) || in create_xfb_varying_names()
167 const struct glsl_type *type_wa = glsl_without_array(type); in process_xfb_layout_qualifiers()
322 glsl_type_is_64bit(glsl_without_array(xfb_decl->matched_candidate->type)) ? 2 : 1; in xfb_decl_assign_location()
1255 const struct glsl_type *element_type = glsl_without_array(var->type); in varying_matches_compute_packing_order()
1782 if (glsl_type_is_struct(glsl_without_array(type)) || in tfeedback_candidate_generator()
1783 glsl_type_is_interface(glsl_without_array(type)) || in tfeedback_candidate_generator()
1801 assert(!glsl_type_is_struct(glsl_without_array(type))); in tfeedback_candidate_generator()
1802 assert(!glsl_type_is_interface(glsl_without_array(type))); in tfeedback_candidate_generator()
1809 if (glsl_type_is_64bit(glsl_without_array(type))) { in tfeedback_candidate_generator()
[all …]
Dgl_nir_link_uniform_initializers.c192 const struct glsl_type *t_without_array = glsl_without_array(type); in set_uniform_initializer()
289 glsl_without_array(var->type); in gl_nir_set_uniform_initializers()
Dgl_nir_lower_packed_varyings.c246 type = glsl_without_array(type); in needs_lowering()
488 const struct glsl_type *packed_type = glsl_without_array(packed_var->type); in bitwise_assign_unpack()
572 const struct glsl_type *type = glsl_without_array(deref->type); in create_store_deref()
625 unsigned dmul = glsl_type_is_64bit(glsl_without_array(type)) ? 2 : 1; in lower_arraylike()
Dgl_nir_link_uniform_blocks.c431 const struct glsl_type *type = glsl_without_array(var->type); in allocate_uniform_blocks()
469 const struct glsl_type *type = glsl_without_array(var->type); in fill_block()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_nir_lower_fs_out_to_vector.cpp234 if (!glsl_type_is_vector_or_scalar(glsl_without_array(var->type))) in var_can_rewrite()
237 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()
376 assert(glsl_get_vector_elements(glsl_without_array(var2->type)) < 4); in vec_instr_stack_pop()
Dsfn_nir_vectorize_vs_inputs.c62 if (!glsl_type_is_vector_or_scalar(glsl_without_array(var->type))) in r600_variable_can_rewrite()
67 if (glsl_get_bit_size(glsl_without_array(var->type)) != 32) in r600_variable_can_rewrite()
195 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/gallium/auxiliary/nir/
Dnir_to_tgsi_info.c336 glsl_get_base_type(glsl_without_array(var->type)); in scan_instruction()
529 glsl_get_base_type(glsl_without_array(variable->type)); in nir_tgsi_scan_shader()
617 unsigned vector_elements = glsl_get_vector_elements(glsl_without_array(variable->type)); in nir_tgsi_scan_shader()
622 if (glsl_type_is_64bit(glsl_without_array(variable->type))) { in nir_tgsi_scan_shader()
623 if (glsl_type_is_dual_slot(glsl_without_array(variable->type)) && k % 2) { in nir_tgsi_scan_shader()
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
Dnir_to_spirv.h58 return glsl_get_base_type(glsl_without_array(type)) == GLSL_TYPE_ATOMIC_UINT; in type_is_counter()
Dnir_to_spirv.c677 …pe) || glsl_array_size(var->type) == 1 || !glsl_type_is_interface(glsl_without_array(var->type)))… in emit_output()
861 const struct glsl_type *type = glsl_without_array(var->type); in get_bare_image_type()
912 const struct glsl_type *type = glsl_without_array(var->type); in emit_image()
985 …e = glsl_get_bit_size(glsl_get_array_element(glsl_get_struct_field(glsl_without_array(var->type), … in get_bo_array_type()
988 const struct glsl_type *type = glsl_without_array(var->type); in get_bo_array_type()
1008 const struct glsl_type *bare_type = glsl_without_array(var->type); in get_bo_struct_type()
1019 bool is_64bit = glsl_type_is_64bit(glsl_without_array(last_member)); in get_bo_struct_type()
1044 …e = glsl_get_bit_size(glsl_get_array_element(glsl_get_struct_field(glsl_without_array(var->type), … in emit_bo()
1087 const struct glsl_type *type = glsl_without_array(var->type); in emit_uniform()
1321 const struct glsl_type *bare_type = glsl_without_array(out_type); in get_output_type()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_compiler.c491 …unsigned idx = glsl_get_explicit_stride(glsl_get_struct_field(glsl_without_array(var->type), 0)) >… in get_bo_vars()
772 type = glsl_without_array(arraytype); in unroll_struct_type()
787 const struct glsl_type *type = glsl_without_array(var->type); in get_slot_components()
796 unsigned num_components = glsl_get_components(glsl_without_array(type)); in get_slot_components()
798 …while (glsl_type_is_array(arraytype) && !glsl_type_is_struct_or_ifc(glsl_without_array(arraytype))… in get_slot_components()
804 if (glsl_base_type_is_64bit(glsl_get_base_type(glsl_without_array(type)))) in get_slot_components()
869 bool is_struct = glsl_type_is_struct_or_ifc(glsl_without_array(var->type)); in update_so_info()
927 … if (glsl_type_is_array(var->type) && !glsl_type_is_struct_or_ifc(glsl_without_array(var->type))) in update_so_info()
948 …->type) && glsl_array_size(var->type) > 1 && glsl_type_is_interface(glsl_without_array(var->type))) in update_so_info()
1197 const struct glsl_type *bare_type = glsl_without_array(var->type); in get_bo_var()
[all …]
Dzink_lower_cubemap_to_array.c43 const struct glsl_type *new_type = glsl_without_array(type); in make_2darray_from_cubemap_with_array()
44 … new_type != type ? glsl_array_type(make_2darray_from_cubemap_with_array(glsl_without_array(type)), in make_2darray_from_cubemap_with_array()
392 if (!glsl_type_is_sampler(glsl_without_array(var->type))) in rewrite_cube_var_type()

123