/external/mesa3d/src/mesa/main/ |
D | format_utils.h | 83 _mesa_float_to_unorm(float x, unsigned dst_bits) in _mesa_float_to_unorm() argument 88 return MAX_UINT(dst_bits); in _mesa_float_to_unorm() 90 return _mesa_i64roundevenf(x * MAX_UINT(dst_bits)); in _mesa_float_to_unorm() 94 _mesa_half_to_unorm(uint16_t x, unsigned dst_bits) in _mesa_half_to_unorm() argument 96 return _mesa_float_to_unorm(_mesa_half_to_float(x), dst_bits); in _mesa_half_to_unorm() 100 _mesa_unorm_to_unorm(unsigned x, unsigned src_bits, unsigned dst_bits) in _mesa_unorm_to_unorm() argument 102 if (src_bits < dst_bits) { in _mesa_unorm_to_unorm() 103 return EXTEND_NORMALIZED_INT(x, src_bits, dst_bits); in _mesa_unorm_to_unorm() 104 } else if (src_bits > dst_bits) { in _mesa_unorm_to_unorm() 107 if (src_bits + dst_bits > sizeof(x) * 8) { in _mesa_unorm_to_unorm() [all …]
|
D | pack.c | 1450 int dst_bits; in _mesa_pack_luminance_from_rgba_integer() local 1467 dst_bits = _mesa_sizeof_type(dst_type) * 8; in _mesa_pack_luminance_from_rgba_integer() 1468 assert(dst_bits > 0); in _mesa_pack_luminance_from_rgba_integer() 1482 lum32 = convert_integer_luminance64(lum64, dst_bits, in _mesa_pack_luminance_from_rgba_integer() 1517 lum32 = convert_integer_luminance64(lum64, dst_bits, in _mesa_pack_luminance_from_rgba_integer() 1519 alpha = convert_integer(rgba[i][ACOMP], dst_bits, in _mesa_pack_luminance_from_rgba_integer()
|
/external/mesa3d/src/compiler/nir/ |
D | nir_format_convert.h | 157 unsigned src_bits, unsigned dst_bits) in nir_format_bitcast_uvec_unmasked() argument 159 assert(src->bit_size >= src_bits && src->bit_size >= dst_bits); in nir_format_bitcast_uvec_unmasked() 161 assert(dst_bits == 8 || dst_bits == 16 || dst_bits == 32); in nir_format_bitcast_uvec_unmasked() 163 if (src_bits == dst_bits) in nir_format_bitcast_uvec_unmasked() 167 DIV_ROUND_UP(src->num_components * src_bits, dst_bits); in nir_format_bitcast_uvec_unmasked() 171 if (dst_bits > src_bits) { in nir_format_bitcast_uvec_unmasked() 184 if (shift >= dst_bits) { in nir_format_bitcast_uvec_unmasked() 190 nir_ssa_def *mask = nir_imm_int(b, ~0u >> (32 - dst_bits)); in nir_format_bitcast_uvec_unmasked() 198 shift += dst_bits; in nir_format_bitcast_uvec_unmasked()
|
/external/llvm-project/polly/lib/External/isl/imath/ |
D | gmp_compat.c | 773 int dst_bits; in GMPZAPI() local 800 dst_bits = 0; in GMPZAPI() 806 if (dst_bits == MP_DIGIT_BIT) { in GMPZAPI() 808 dst_bits = 0; in GMPZAPI() 810 *dst |= ((mp_digit)*src) << dst_bits; in GMPZAPI() 811 dst_bits += 8; in GMPZAPI()
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_format_aos.c | 153 int dst_bits, in scale_bits_up() argument 160 if (src_bits == 1 && dst_bits > 1) { in scale_bits_up() 168 (1 << dst_bits) - 1), in scale_bits_up() 173 else if (dst_bits > src_bits) { in scale_bits_up() 175 int db = dst_bits - src_bits; in scale_bits_up() 196 for (n = src_bits; n < dst_bits; n *= 2) { in scale_bits_up() 206 assert (dst_bits == src_bits); in scale_bits_up()
|
D | lp_bld_pack.c | 804 unsigned dst_bits = dst_type.sign ? dst_type.width - 1 : dst_type.width; in lp_build_packs2() local 806 ((unsigned long long)1 << dst_bits) - 1); in lp_build_packs2()
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_fs.c | 1648 int dst_bits, in scale_bits() argument 1655 if (dst_bits < src_bits) { in scale_bits() 1656 int delta_bits = src_bits - dst_bits; in scale_bits() 1658 if (delta_bits <= dst_bits) { in scale_bits() 1684 lp_build_const_int_vec(gallivm, src_type, dst_bits), in scale_bits() 1690 lp_build_const_int_vec(gallivm, src_type, (1LL << dst_bits) - 1), in scale_bits() 1718 } else if (dst_bits > src_bits) { in scale_bits() 1720 int db = dst_bits - src_bits; in scale_bits() 1740 for (n = src_bits; n < dst_bits; n *= 2) { in scale_bits()
|
/external/mesa3d/src/amd/llvm/ |
D | ac_llvm_build.c | 1507 unsigned dst_bits = 1 << (3 + load_log_size + log_recombine); in ac_build_opencoded_load_format() local 1508 LLVMTypeRef dst_type = LLVMIntTypeInContext(ctx->context, dst_bits); in ac_build_opencoded_load_format() 1512 tmp = LLVMConstInt(loaded_type, dst_bits * (i - 1), false); in ac_build_opencoded_load_format()
|
/external/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection.cpp | 559 Temp convert_int(isel_context *ctx, Builder& bld, Temp src, unsigned src_bits, unsigned dst_bits, b… in convert_int() argument 562 if (dst_bits % 32 == 0 || src.type() == RegType::sgpr) in convert_int() 563 dst = bld.tmp(src.type(), DIV_ROUND_UP(dst_bits, 32u)); in convert_int() 565 dst = bld.tmp(RegClass(RegType::vgpr, dst_bits / 8u).as_subdword()); in convert_int() 568 if (dst.bytes() == src.bytes() && dst_bits < src_bits) in convert_int() 574 if (dst_bits == 64) in convert_int() 601 if (dst_bits == 64) { in convert_int()
|