Home
last modified time | relevance | path

Searched refs:dest_type (Results 1 - 25 of 102) sorted by relevance

12345

/third_party/mesa3d/src/compiler/glsl/
H A Dir_expression_operation.py45 self.dest_type = None
50 def __init__(self, dest_type, source_types, num_operands):
57 self.dest_type = dest_type
70 if self.dest_type is None:
71 dest_type = self.source_types[i]
73 dest_type = self.dest_type
75 return (dest_type, self.num_operands * (self.source_types[i],))
200 data.${op.dest_type
[all...]
/third_party/mesa3d/src/compiler/nir/
H A Dnir_conversion_builder.h231 nir_alu_type dest_type, in nir_get_clamp_limits()
236 nir_alu_type dest_base_type = nir_alu_type_get_base_type(dest_type); in nir_get_clamp_limits()
238 unsigned dest_bit_size = nir_alu_type_get_type_size(dest_type); in nir_get_clamp_limits()
344 * dest_type: The type which determines the range used for comparison
350 nir_alu_type dest_type) in nir_clamp_to_type_range()
355 if (nir_alu_type_range_contains_type_range(dest_type, src_type)) in nir_clamp_to_type_range()
360 nir_get_clamp_limits(b, src_type, dest_type, &low, &high); in nir_clamp_to_type_range()
382 nir_get_clamp_limits(b, val_type, dest_type, &val_low, &val_high); in nir_clamp_to_type_range()
396 nir_alu_type dest_type, in nir_simplify_conversion_rounding()
400 nir_alu_type dest_base_type = nir_alu_type_get_base_type(dest_type); in nir_simplify_conversion_rounding()
229 nir_get_clamp_limits(nir_builder *b, nir_alu_type src_type, nir_alu_type dest_type, nir_ssa_def **low, nir_ssa_def **high) nir_get_clamp_limits() argument
347 nir_clamp_to_type_range(nir_builder *b, nir_ssa_def *val, nir_alu_type val_type, nir_ssa_def *src, nir_alu_type src_type, nir_alu_type dest_type) nir_clamp_to_type_range() argument
395 nir_simplify_conversion_rounding(nir_alu_type src_type, nir_alu_type dest_type, nir_rounding_mode rounding) nir_simplify_conversion_rounding() argument
435 nir_convert_with_rounding(nir_builder *b, nir_ssa_def *src, nir_alu_type src_type, nir_alu_type dest_type, nir_rounding_mode round, bool clamp) nir_convert_with_rounding() argument
[all...]
H A Dnir_lower_convert_alu_types.c34 nir_alu_type dest_type = nir_intrinsic_dest_type(conv); in try_simplify_convert_intrin() local
38 nir_simplify_conversion_rounding(src_type, dest_type, rounding); in try_simplify_convert_intrin()
45 nir_alu_type_range_contains_type_range(dest_type, src_type)) { in try_simplify_convert_intrin()
199 .src_type = src_type, .dest_type = dst_type, in lower_alu_conversion()
H A Dnir_lower_mediump.c602 fold_16bit_destination(nir_ssa_def *ssa, nir_alu_type dest_type, in fold_16bit_destination() argument
605 bool is_f32_to_f16 = dest_type == nir_type_float32; in fold_16bit_destination()
606 bool is_i32_to_i16 = dest_type == nir_type_int32 || dest_type == nir_type_uint32; in fold_16bit_destination()
639 nir_alu_type dest_type = nir_intrinsic_dest_type(instr); in fold_16bit_load_data() local
641 if (!fold_16bit_destination(&instr->dest.ssa, dest_type, exec_mode, rdm)) in fold_16bit_load_data()
644 nir_intrinsic_set_dest_type(instr, (dest_type & ~32) | 16); in fold_16bit_load_data()
668 if (!fold_16bit_destination(&tex->dest.ssa, tex->dest_type, exec_mode, rdm)) in fold_16bit_tex_dest()
671 tex->dest_type = (tex->dest_type in fold_16bit_tex_dest()
[all...]
H A Dnir_lower_tex.c311 assert(nir_alu_type_get_base_type(tex->dest_type) == nir_type_float); in sample_plane()
325 plane_tex->dest_type = nir_type_float | nir_dest_bit_size(tex->dest); in sample_plane()
805 txd->dest_type = tex->dest_type; in lower_tex_to_txd()
844 txl->dest_type = tex->dest_type; in lower_txb_to_txl()
977 swizzled = get_zero_or_one(b, tex->dest_type, swizzle[tex->component]); in swizzle_result()
992 srcs[i] = nir_get_ssa_scalar(get_zero_or_one(b, tex->dest_type, swizzle[i]), 0); in swizzle_result()
1008 assert(nir_alu_type_get_base_type(tex->dest_type) == nir_type_float); in linearize_srgb_result()
1050 switch (nir_alu_type_get_base_type(tex->dest_type)) { in lower_tex_packing()
[all...]
H A Dnir_lower_drawpixels.c149 tex->dest_type = nir_type_float32; in lower_color()
191 tex->dest_type = nir_type_float32; in lower_color()
209 tex->dest_type = nir_type_float32; in lower_color()
H A Dnir_lower_bool_to_int32.c126 if (tex->dest_type == nir_type_bool1) { in lower_tex_instr()
127 tex->dest_type = nir_type_bool32; in lower_tex_instr()
H A Dnir_lower_bool_to_float.c135 if (tex->dest_type == nir_type_bool1) { in lower_tex_instr()
136 tex->dest_type = nir_type_bool32; in lower_tex_instr()
H A Dnir_lower_readonly_images_to_tex.c162 tex->dest_type = nir_intrinsic_dest_type(intrin); in lower_readonly_image_op()
175 tex->dest_type = nir_type_uint32; in lower_readonly_image_op()
/third_party/mesa3d/src/compiler/spirv/
H A Dvtn_opencl.c38 const struct vtn_type *dest_type);
181 const struct vtn_type *dest_type, in call_mangled_function()
193 if (dest_type) { in call_mangled_function()
195 glsl_get_bare_type(dest_type->type), in call_mangled_function()
213 struct vtn_type *dest_type = w_dest ? vtn_get_type(b, w_dest[0]) : NULL; in handle_instr() local
225 nir_ssa_def *result = handler(b, opcode, num_srcs, srcs, src_types, dest_type); in handle_instr()
229 vtn_assert(dest_type == NULL); in handle_instr()
286 const struct vtn_type *dest_type) in handle_alu()
291 ret = nir_u2u(&b->nb, ret, glsl_get_bit_size(dest_type->type)); in handle_alu()
435 const struct vtn_type *dest_type) in handle_clc_fn()
176 call_mangled_function(struct vtn_builder *b, const char *name, uint32_t const_mask, uint32_t num_srcs, struct vtn_type **src_types, const struct vtn_type *dest_type, nir_ssa_def **srcs, nir_deref_instr **ret_deref_ptr) call_mangled_function() argument
284 handle_alu(struct vtn_builder *b, uint32_t opcode, unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, const struct vtn_type *dest_type) handle_alu() argument
431 handle_clc_fn(struct vtn_builder *b, enum OpenCLstd_Entrypoints opcode, int num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, const struct vtn_type *dest_type) handle_clc_fn() argument
479 handle_special(struct vtn_builder *b, uint32_t opcode, unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, const struct vtn_type *dest_type) handle_special() argument
577 handle_core(struct vtn_builder *b, uint32_t opcode, unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, const struct vtn_type *dest_type) handle_core() argument
840 handle_round(struct vtn_builder *b, uint32_t opcode, unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, const struct vtn_type *dest_type) handle_round() argument
855 handle_shuffle(struct vtn_builder *b, uint32_t opcode, unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, const struct vtn_type *dest_type) handle_shuffle() argument
875 handle_shuffle2(struct vtn_builder *b, uint32_t opcode, unsigned num_srcs, nir_ssa_def **srcs, struct vtn_type **src_types, const struct vtn_type *dest_type) handle_shuffle2() argument
[all...]
H A Dvtn_alu.c76 const struct glsl_type *dest_type; in matrix_multiply() local
78 dest_type = glsl_matrix_type(glsl_get_base_type(src0->type), in matrix_multiply()
81 dest_type = glsl_vector_type(glsl_get_base_type(src0->type), src0_rows); in matrix_multiply()
83 struct vtn_ssa_value *dest = vtn_create_ssa_value(b, dest_type); in matrix_multiply()
598 const struct glsl_type *dest_type = vtn_get_type(b, w[1])->type; in vtn_handle_alu() local
624 struct vtn_ssa_value *dest = vtn_create_ssa_value(b, dest_type); in vtn_handle_alu()
653 vtn_assert(glsl_type_is_struct_or_ifc(dest_type)); in vtn_handle_alu()
659 vtn_assert(glsl_type_is_struct_or_ifc(dest_type)); in vtn_handle_alu()
665 vtn_assert(glsl_type_is_struct_or_ifc(dest_type)); in vtn_handle_alu()
678 vtn_assert(glsl_type_is_struct_or_ifc(dest_type)); in vtn_handle_alu()
1009 const struct glsl_type *dest_type = vtn_get_type(b, w[1])->type; vtn_handle_integer_dot() local
[all...]
H A Dvtn_subgroup.c77 struct vtn_type *dest_type = vtn_get_type(b, w[1]); in vtn_handle_subgroup() local
81 vtn_fail_if(dest_type->type != glsl_bool_type(), in vtn_handle_subgroup()
86 dest_type->type, NULL); in vtn_handle_subgroup()
95 vtn_fail_if(dest_type->type != glsl_vector_type(GLSL_TYPE_UINT, 4), in vtn_handle_subgroup()
120 dest_type->type, NULL); in vtn_handle_subgroup()
175 dest_type->type, NULL); in vtn_handle_subgroup()
211 vtn_fail_if(dest_type->type != glsl_bool_type(), in vtn_handle_subgroup()
268 dest_type->type, NULL); in vtn_handle_subgroup()
H A Dvtn_amd.c81 const struct glsl_type *dest_type = vtn_get_type(b, w[1])->type; in vtn_handle_amd_shader_ballot_instruction() local
83 nir_ssa_dest_init_for_type(&intrin->instr, &intrin->dest, dest_type, NULL); in vtn_handle_amd_shader_ballot_instruction()
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/
H A Dnir_to_spirv.c1915 SpvId dest_type = get_dest_type(ctx, &alu->dest.dest, in emit_alu() local
1934 result = emit_unop(ctx, spirv_op, dest_type, src[0]); \ in emit_alu()
1973 result = emit_unop(ctx, SpvOpLogicalNot, dest_type, src[0]); in emit_alu()
1975 result = emit_unop(ctx, SpvOpNot, dest_type, src[0]); in emit_alu()
1982 result = emit_select(ctx, dest_type, src[0], in emit_alu()
1991 result = emit_select(ctx, dest_type, src[0], in emit_alu()
1999 result = emit_builtin_unop(ctx, spirv_op, dest_type, src[0]); \ in emit_alu()
2045 result = emit_binop(ctx, SpvOpFDiv, dest_type, in emit_alu()
2052 result = emit_binop(ctx, SpvOpFOrdNotEqual, dest_type, src[0], in emit_alu()
2059 result = emit_binop(ctx, SpvOpINotEqual, dest_type, sr in emit_alu()
2415 SpvId dest_type = get_dest_type(ctx, &intr->dest, nir_type_uint); emit_load_shared() local
2660 SpvId dest_type = get_dest_type(ctx, &intr->dest, type); handle_atomic_op() local
2683 SpvId dest_type = get_dest_type(ctx, &intr->dest, nir_type_uint32); emit_shared_atomic_intrinsic() local
2788 extract_sparse_load(struct ntv_context *ctx, SpvId result, SpvId dest_type, nir_ssa_def *dest_ssa) extract_sparse_load() argument
2835 SpvId dest_type = spirv_builder_type_vector(&ctx->builder, base_type, nir_dest_num_components(intr->dest)); emit_image_deref_load() local
3504 SpvId dest_type = get_dest_type(ctx, &tex->dest, tex->dest_type); emit_tex() local
[all...]
/third_party/ffmpeg/libavformat/
H A Dsdp.c61 const char *dest_type, int ttl) in sdp_write_address()
64 if (!dest_type) in sdp_write_address()
65 dest_type = "IP4"; in sdp_write_address()
66 if (ttl > 0 && !strcmp(dest_type, "IP4")) { in sdp_write_address()
69 av_strlcatf(buff, size, "c=IN %s %s/%d\r\n", dest_type, dest_addr, ttl); in sdp_write_address()
71 av_strlcatf(buff, size, "c=IN %s %s\r\n", dest_type, dest_addr); in sdp_write_address()
812 const char *dest_addr, const char *dest_type, in ff_sdp_write_media()
829 sdp_write_address(buff, size, dest_addr, dest_type, ttl); in ff_sdp_write_media()
916 const char *dest_addr, const char *dest_type, in ff_sdp_write_media()
60 sdp_write_address(char *buff, int size, const char *dest_addr, const char *dest_type, int ttl) sdp_write_address() argument
811 ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx, const char *dest_addr, const char *dest_type, int port, int ttl, AVFormatContext *fmt) ff_sdp_write_media() argument
915 ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx, const char *dest_addr, const char *dest_type, int port, int ttl, AVFormatContext *fmt) ff_sdp_write_media() argument
/third_party/mesa3d/src/panfrost/midgard/
H A Dmir.c135 if (ins->dest_type != ins->src_types[i]) return true; in mir_nontrivial_mod()
153 if (ins->dest_type != ins->src_types[1]) in mir_nontrivial_outmod()
224 unsigned type_size = nir_alu_type_get_type_size(ins->dest_type); in mir_bytemask()
231 unsigned type_size = nir_alu_type_get_type_size(ins->dest_type); in mir_set_bytemask()
241 unsigned type_size = nir_alu_type_get_type_size(ins->dest_type); in mir_upper_override()
H A Dmir_promote_uniforms.c330 unsigned type_size = nir_alu_type_get_type_size(ins->dest_type); in midgard_promote_uniforms()
332 mov.dest_type = nir_type_uint | type_size; in midgard_promote_uniforms()
333 mov.src_types[1] = mov.dest_type; in midgard_promote_uniforms()
H A Dmidgard_ra.c285 m.dest_type = pre_use->dest_type; in mir_lower_special_reads()
286 m.src_types[1] = m.dest_type; in mir_lower_special_reads()
434 if (nir_alu_type_get_type_size(ins->dest_type) == 64) in mir_is_64()
535 unsigned size = nir_alu_type_get_type_size(ins->dest_type); in allocate_registers()
742 util_logbase2(nir_alu_type_get_type_size(ins->dest_type) / 8); in install_registers_instr()
951 st.dest_type = st.src_types[1] = ins->dest_type; in mir_spill_register()
1117 .dest_type = ins->src_types[i], in mir_demote_uniforms()
H A Dmidgard_print.c130 unsigned max_comp = mir_components_for_type(ins->dest_type); in mir_print_embedded_constant()
263 pan_print_alu_type(ins->dest_type, stdout); in mir_print_instruction()
H A Dmidgard_emit.c125 bool is_full = nir_alu_type_get_type_size(ins->dest_type) == 32; in vector_to_scalar_alu()
372 nir_alu_type_get_type_size(ins->dest_type); in mir_pack_swizzle_ldst()
503 unsigned sz = nir_alu_type_get_type_size(ins->dest_type); in mir_pack_ldst_mask()
1042 unsigned osz = nir_alu_type_get_type_size(ins->dest_type); in emit_binary_bundle()
1051 ins->texture.sampler_type = midgard_sampler_type(ins->dest_type); in emit_binary_bundle()
/third_party/mesa3d/src/gallium/drivers/vc4/
H A Dvc4_nir_lower_txf_ms.c50 txf->dest_type = txf_ms->dest_type; in vc4_nir_lower_txf_ms_instr()
/third_party/mesa3d/src/microsoft/compiler/
H A Ddxil_nir_lower_int_samplers.c42 return (tex->dest_type & (nir_type_int | nir_type_uint)); in lower_sample_to_txf_for_integer_tex_filter()
74 tql->dest_type = nir_type_float32; in dx_get_texture_lod()
274 txf->dest_type = tex->dest_type; in create_txf_from_tex()
/third_party/mesa3d/src/microsoft/clc/
H A Dclc_compiler.c152 nir_alu_type dest_type; in clc_lower_input_image_deref() local
159 dest_type = intrinsic->intrinsic == nir_intrinsic_image_deref_load ? in clc_lower_input_image_deref()
162 switch (nir_alu_type_get_base_type(dest_type)) { in clc_lower_input_image_deref()
172 lower_read_write_image_deref(b, context, dest_type); in clc_lower_input_image_deref()
232 switch (nir_alu_type_get_base_type(tex->dest_type)) { in clc_lower_input_image_deref()
242 lower_read_only_image_deref(b, context, tex->dest_type); in clc_lower_input_image_deref()
353 if (nir_alu_type_get_base_type(tex->dest_type) != nir_type_float) in clc_lower_nonnormalized_samplers()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_nir_lower_ubo_to_uniform.c70 .dest_type = nir_type_float32); in lower_ubo_to_uniform()
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_nir_lower_ycbcr_textures.c51 tex->dest_type = nir_type_int32; in get_texture_size()
144 tex->dest_type = old_tex->dest_type; in create_plane_tex_instr_implicit()

Completed in 24 milliseconds

12345