/third_party/mesa3d/src/gallium/drivers/lima/ir/ |
D | lima_nir_lower_txp.c | 30 int coord_components, int *proj_idx) in get_proj_index() argument 69 for (int i = 0; i < coord_components; i++) { in get_proj_index() 119 tex->coord_components, in lima_nir_lower_txp_instr() 125 tex->coord_components = 4; in lima_nir_lower_txp_instr() 129 tex->coord_components = 3; in lima_nir_lower_txp_instr() 131 switch (tex->coord_components) { in lima_nir_lower_txp_instr() 139 tex->coord_components = 3; in lima_nir_lower_txp_instr() 146 tex->coord_components = 3; in lima_nir_lower_txp_instr() 154 tex->coord_components = 4; in lima_nir_lower_txp_instr()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_readonly_images_to_tex.c | 133 unsigned coord_components = in lower_readonly_image_op() local 136 coord_components++; in lower_readonly_image_op() 150 nir_trim_vector(b, intrin->src[1].ssa, coord_components); in lower_readonly_image_op() 153 tex->coord_components = coord_components; in lower_readonly_image_op() 177 coord_components, 32, NULL); in lower_readonly_image_op()
|
D | nir_lower_tex.c | 129 switch (tex->coord_components) { in project_src() 199 if (tex->coord_components == 2) { in lower_offset() 202 } else if (tex->coord_components == 3) { in lower_offset() 233 nir_ssa_for_src(b, tex->src[coord_index].src, tex->coord_components); in lower_rect() 251 nir_ssa_for_src(b, tex->src[coord_index].src, tex->coord_components); in lower_rect_tex_scale() 313 assert(tex->coord_components == 2); in sample_plane() 326 plane_tex->coord_components = 2; in sample_plane() 806 txd->coord_components = tex->coord_components; in lower_tex_to_txd() 845 txl->coord_components = tex->coord_components; in lower_txb_to_txl() 888 nir_ssa_for_src(b, tex->src[coord_index].src, tex->coord_components); in saturate_src() [all …]
|
D | nir_lower_drawpixels.c | 148 tex->coord_components = 2; in lower_color() 157 (1 << tex->coord_components) - 1)); in lower_color() 188 tex->coord_components = 2; in lower_color() 207 tex->coord_components = 2; in lower_color()
|
D | nir_lower_bitmap.c | 97 tex->coord_components = 2; in lower_bitmap() 106 (1 << tex->coord_components) - 1)); in lower_bitmap()
|
D | nir_lower_input_attachments.c | 123 tex->coord_components = 3; in try_lower_input_load() 172 tex->coord_components = 3; in try_lower_input_texop()
|
D | nir_lower_fb_read.c | 62 tex->coord_components = 2; in lower_fb_read()
|
D | nir_normalize_cubemap_coords.c | 69 if (tex->coord_components == 4) { in normalize_cubemap_coords_block()
|
D | nir_instr_set.c | 271 hash = HASH(hash, instr->coord_components); in hash_tex() 664 if (tex1->coord_components != tex2->coord_components || in nir_instrs_equal()
|
/third_party/mesa3d/src/broadcom/compiler/ |
D | v3d33_tex.c | 83 for (int j = 0; j < instr->coord_components; j++) { in v3d33_vir_emit_tex() 87 if (instr->coord_components < 2) in v3d33_vir_emit_tex() 119 if (instr->coord_components >= 2) in v3d33_vir_emit_tex() 123 if (instr->coord_components >= 3) in v3d33_vir_emit_tex()
|
D | v3d40_tex.c | 123 instr->coord_components - 1); in handle_tex_src() 207 instr->coord_components - instr->is_array : in vir_tex_handle_srcs() 208 instr->coord_components; in vir_tex_handle_srcs()
|
/third_party/mesa3d/src/microsoft/compiler/ |
D | dxil_nir_lower_int_samplers.c | 64 unsigned coord_components = tex->coord_components; in dx_get_texture_lod() local 66 --coord_components; in dx_get_texture_lod() 68 tql->coord_components = coord_components; in dx_get_texture_lod() 82 (1 << coord_components) - 1); in dx_get_texture_lod() 267 txf->coord_components = tex->coord_components; in create_txf_from_tex() 300 switch (tex->coord_components) { in load_texel() 429 params.ncoord_comp = tex->coord_components; in lower_sample_to_txf_for_integer_tex_impl()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_instr_tex.cpp | 444 auto swizzle = src.swizzle_from_ncomps(tex->coord_components); in emit_tex_txf() 454 for (unsigned i = 0; i < tex->coord_components; i++) { in emit_tex_txf() 547 for (unsigned i = 0; i < tex->coord_components; ++i) { in emit_tex_tex_ms_direct() 587 for (unsigned i = 0; i < tex->coord_components; ++i) { in emit_tex_tex_ms() 636 for (unsigned i = 0; i < tex->coord_components; ++i) { in emit_tex_tex_ms() 687 auto swizzle = src.swizzle_from_ncomps(tex->coord_components); in emit_tex_txd() 722 for (unsigned i = 0; i < tex->coord_components; ++i) { in emit_tex_txd() 851 int src_components = tex->coord_components; in emit_tex_tg4() 858 int noffsets = tex->coord_components; in emit_tex_tg4() 903 for (unsigned i = 0; i < tex->coord_components; ++i) { in prepare_source() [all …]
|
/third_party/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_nir.c | 126 assert(coord && src1 && tex->coord_components < 4); in etna_lower_io() 129 for (unsigned i = 0; i < tex->coord_components; i++) { in etna_lower_io() 133 for (unsigned i = tex->coord_components; i < 4; i++) in etna_lower_io() 141 tex->coord_components = 4; in etna_lower_io()
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_lower_logical_sends.cpp | 473 unsigned coord_components, in lower_sampler_logical_send_gfx4() argument 484 for (unsigned i = 0; i < coord_components; i++) in lower_sampler_logical_send_gfx4() 488 msg_end = offset(msg_end, bld, coord_components); in lower_sampler_logical_send_gfx4() 493 if (coord_components > 0 && in lower_sampler_logical_send_gfx4() 496 assert(coord_components <= 3); in lower_sampler_logical_send_gfx4() 497 for (unsigned i = 0; i < 3 - coord_components; i++) in lower_sampler_logical_send_gfx4() 500 msg_end = offset(msg_end, bld, 3 - coord_components); in lower_sampler_logical_send_gfx4() 508 if (coord_components < 2) in lower_sampler_logical_send_gfx4() 509 msg_end = offset(msg_end, bld, 2 - coord_components); in lower_sampler_logical_send_gfx4() 581 unsigned coord_components, in lower_sampler_logical_send_gfx5() argument [all …]
|
/third_party/mesa3d/src/intel/blorp/ |
D | blorp_nir_builder.h | 49 tex->coord_components = 3; in blorp_nir_txf_ms_mcs() 55 tex->coord_components = 2; in blorp_nir_txf_ms_mcs()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_nir_lower_txf_ms.c | 47 txf->coord_components = txf_ms->coord_components; in vc4_nir_lower_txf_ms_instr()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
D | st_pbo_compute.c | 609 unsigned coord_components = glsl_get_sampler_coordinate_components(sampler->type); in create_conversion_shader() local 627 if (coord_components < 3) in create_conversion_shader() 631 assert(coord_components == 3); in create_conversion_shader() 636 coord = nir_trim_vector(&b, coord, coord_components); in create_conversion_shader() 637 nir_ssa_def *offset = coord_components > 2 ? in create_conversion_shader() 639 nir_trim_vector(&b, sd.offset, coord_components); in create_conversion_shader() 640 nir_ssa_def *range = nir_trim_vector(&b, sd.range, coord_components); in create_conversion_shader() 648 txf->coord_components = coord_components; in create_conversion_shader()
|
/third_party/mesa3d/src/intel/vulkan/ |
D | anv_nir_lower_ycbcr_textures.c | 149 tex->coord_components = old_tex->coord_components; in create_plane_tex_instr_implicit()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_nir_lower_ycbcr_textures.c | 148 tex->coord_components = old_tex->coord_components; in create_plane_tex_instr_implicit()
|
D | radv_meta_fmask_copy.c | 75 frag_mask_fetch->coord_components = 2; in build_fmask_copy_compute_shader() 111 frag_fetch->coord_components = 2; in build_fmask_copy_compute_shader()
|
/third_party/skia/third_party/externals/spirv-cross/ |
D | spirv_hlsl.cpp | 2815 uint32_t coord_components = 0; in emit_texture_op() local 2819 coord_components = 1; in emit_texture_op() 2822 coord_components = 2; in emit_texture_op() 2825 coord_components = 3; in emit_texture_op() 2828 coord_components = 3; in emit_texture_op() 2831 coord_components = 1; in emit_texture_op() 2834 coord_components = 2; in emit_texture_op() 2842 coord_components++; in emit_texture_op() 3047 if (coord_components != coord_type.vecsize) in emit_texture_op() 3048 …coord_expr = to_enclosed_expression(coord) + swizzle(coord_components, expression_type(coord).vecs… in emit_texture_op() [all …]
|
/third_party/mesa3d/src/gallium/drivers/lima/ir/pp/ |
D | nir.c | 490 for (int i = 0; i < instr->coord_components; i++) in ppir_emit_tex() 516 u_bit_consecutive(0, instr->coord_components)); in ppir_emit_tex() 552 load->num_components = instr->coord_components; in ppir_emit_tex() 568 if (instr->coord_components == 3) in ppir_emit_tex()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_lower_cubemap_to_array.c | 159 array_tex->coord_components = 3; in create_array_tex_from_cube_tex() 423 txl->coord_components = tex->coord_components; in lower_tex_to_txl()
|
/third_party/mesa3d/src/microsoft/vulkan/ |
D | dzn_nir.c | 669 tex->coord_components = coord_comps; in dzn_nir_blit_fs() 703 tex->coord_components = coord_comps; in dzn_nir_blit_fs() 723 tex->coord_components = coord_comps; in dzn_nir_blit_fs()
|