/third_party/mesa3d/src/util/format/ |
D | format_utils.h | 70 _mesa_float_to_unorm(float x, unsigned dst_bits) in _mesa_float_to_unorm() argument 75 return u_uintN_max(dst_bits); in _mesa_float_to_unorm() 77 return _mesa_i64roundevenf(x * u_uintN_max(dst_bits)); in _mesa_float_to_unorm() 81 _mesa_half_to_unorm(uint16_t x, unsigned dst_bits) in _mesa_half_to_unorm() argument 83 return _mesa_float_to_unorm(_mesa_half_to_float(x), dst_bits); in _mesa_half_to_unorm() 87 _mesa_unorm_to_unorm(unsigned x, unsigned src_bits, unsigned dst_bits) in _mesa_unorm_to_unorm() argument 89 if (src_bits < dst_bits) { in _mesa_unorm_to_unorm() 90 return EXTEND_NORMALIZED_INT(x, src_bits, dst_bits); in _mesa_unorm_to_unorm() 91 } else if (src_bits > dst_bits) { in _mesa_unorm_to_unorm() 94 if (src_bits + dst_bits > sizeof(x) * 8) { in _mesa_unorm_to_unorm() [all …]
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_format_convert.h | 179 unsigned src_bits, unsigned dst_bits) in nir_format_bitcast_uvec_unmasked() argument 181 assert(src->bit_size >= src_bits && src->bit_size >= dst_bits); in nir_format_bitcast_uvec_unmasked() 183 assert(dst_bits == 8 || dst_bits == 16 || dst_bits == 32); in nir_format_bitcast_uvec_unmasked() 185 if (src_bits == dst_bits) in nir_format_bitcast_uvec_unmasked() 189 DIV_ROUND_UP(src->num_components * src_bits, dst_bits); in nir_format_bitcast_uvec_unmasked() 193 if (dst_bits > src_bits) { in nir_format_bitcast_uvec_unmasked() 206 if (shift >= dst_bits) { in nir_format_bitcast_uvec_unmasked() 212 nir_ssa_def *mask = nir_imm_int(b, ~0u >> (32 - dst_bits)); in nir_format_bitcast_uvec_unmasked() 220 shift += dst_bits; in nir_format_bitcast_uvec_unmasked()
|
/third_party/pixman/test/ |
D | composite-traps-test.c | 59 uint32_t * dst_bits; in test_composite() local 160 dst_bits = (uint32_t *)make_random_bytes (dst_stride * dst_height); in test_composite() 164 dst_bits += (dst_stride / 4) * (dst_height - 1); in test_composite() 172 dst_format, dst_width, dst_height, dst_bits, dst_stride); in test_composite() 235 dst_bits += (dst_stride / 4) * (dst_height - 1); in test_composite() 237 fence_free (dst_bits); in test_composite()
|
/third_party/pixman/pixman/ |
D | pixman-arm-simd.c | 142 uint32_t * dst_bits, in arm_simd_blt() argument 162 (uint8_t *)(((char *) dst_bits) + in arm_simd_blt() 170 (uint16_t *)(((char *) dst_bits) + in arm_simd_blt() 178 (uint32_t *)(((char *) dst_bits) + in arm_simd_blt()
|
D | pixman-implementation.c | 235 uint32_t * dst_bits, in _pixman_implementation_blt() argument 250 (*imp->blt) (imp, src_bits, dst_bits, src_stride, dst_stride, in _pixman_implementation_blt()
|
D | pixman-mips-dspr2.c | 215 uint32_t * dst_bits, in mips_dspr2_blt() argument 241 dst_bytes = (uint8_t *)(((uint16_t *)dst_bits) in mips_dspr2_blt() 261 dst_bytes = (uint8_t *)(((uint32_t *)dst_bits) in mips_dspr2_blt()
|
D | pixman-arm-neon.c | 233 uint32_t * dst_bits, in arm_neon_blt() argument 253 (uint16_t *)(((char *) dst_bits) + in arm_neon_blt() 261 (uint32_t *)(((char *) dst_bits) + in arm_neon_blt()
|
D | pixman-private.h | 491 uint32_t * dst_bits, 573 uint32_t * dst_bits,
|
D | pixman.c | 729 uint32_t *dst_bits, in pixman_blt() argument 742 src_bits, dst_bits, src_stride, dst_stride, in pixman_blt()
|
D | pixman.h | 756 uint32_t *dst_bits,
|
D | pixman-mmx.c | 3256 uint32_t * dst_bits, in mmx_blt() argument 3280 dst_bytes = (uint8_t *)(((uint16_t *)dst_bits) + dst_stride * (dest_y) + (dest_x)); in mmx_blt() 3290 dst_bytes = (uint8_t *)(((uint32_t *)dst_bits) + dst_stride * (dest_y) + (dest_x)); in mmx_blt()
|
D | pixman-sse2.c | 4694 uint32_t * dst_bits, in sse2_blt() argument 4718 dst_bytes = (uint8_t *)(((uint16_t *)dst_bits) + dst_stride * (dest_y) + (dest_x)); in sse2_blt() 4728 dst_bytes = (uint8_t *)(((uint32_t *)dst_bits) + dst_stride * (dest_y) + (dest_x)); in sse2_blt()
|
/third_party/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()
|
/third_party/mesa3d/src/microsoft/compiler/ |
D | nir_to_dxil.c | 1613 unsigned dst_bits = nir_dest_bit_size(alu->dest.dest); in get_cast_op() local 1627 assert(dst_bits != src_bits); in get_cast_op() 1628 if (dst_bits < src_bits) in get_cast_op() 1637 assert(dst_bits != src_bits); in get_cast_op() 1638 if (dst_bits < src_bits) in get_cast_op() 1647 assert(dst_bits != src_bits); in get_cast_op() 1648 if (dst_bits < src_bits) in get_cast_op() 1685 unsigned dst_bits = nir_dest_bit_size(alu->dest.dest); in get_cast_dest_type() local 1688 assert(dst_bits == 1); in get_cast_dest_type() 1692 return dxil_module_get_int_type(&ctx->mod, dst_bits); in get_cast_dest_type() [all …]
|
/third_party/mesa3d/src/mesa/main/ |
D | pack.c | 1451 int dst_bits; in _mesa_pack_luminance_from_rgba_integer() local 1468 dst_bits = _mesa_sizeof_type(dst_type) * 8; in _mesa_pack_luminance_from_rgba_integer() 1469 assert(dst_bits > 0); in _mesa_pack_luminance_from_rgba_integer() 1483 lum32 = convert_integer_luminance64(lum64, dst_bits, in _mesa_pack_luminance_from_rgba_integer() 1518 lum32 = convert_integer_luminance64(lum64, dst_bits, in _mesa_pack_luminance_from_rgba_integer() 1520 alpha = convert_integer(rgba[i][ACOMP], dst_bits, in _mesa_pack_luminance_from_rgba_integer()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_fs.c | 1704 int dst_bits, in scale_bits() argument 1711 if (dst_bits < src_bits) { in scale_bits() 1712 int delta_bits = src_bits - dst_bits; in scale_bits() 1714 if (delta_bits <= dst_bits) { in scale_bits() 1716 if (dst_bits == 4) { in scale_bits() 1720 result = lp_build_clamped_float_to_unsigned_norm(gallivm, flt_type, dst_bits, result); in scale_bits() 1749 lp_build_const_int_vec(gallivm, src_type, dst_bits), in scale_bits() 1755 lp_build_const_int_vec(gallivm, src_type, (1LL << dst_bits) - 1), in scale_bits() 1783 } else if (dst_bits > src_bits) { in scale_bits() 1785 int db = dst_bits - src_bits; in scale_bits() [all …]
|
/third_party/mesa3d/src/amd/llvm/ |
D | ac_llvm_build.c | 1549 unsigned dst_bits = 1 << (3 + load_log_size + log_recombine); in ac_build_opencoded_load_format() local 1550 LLVMTypeRef dst_type = LLVMIntTypeInContext(ctx->context, dst_bits); in ac_build_opencoded_load_format() 1554 tmp = LLVMConstInt(loaded_type, dst_bits * (i - 1), false); in ac_build_opencoded_load_format()
|
/third_party/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection.cpp | 605 convert_int(isel_context* ctx, Builder& bld, Temp src, unsigned src_bits, unsigned dst_bits, in convert_int() argument 608 assert(!(sign_extend && dst_bits < src_bits) && in convert_int() 612 if (dst_bits % 32 == 0 || src.type() == RegType::sgpr) in convert_int() 613 dst = bld.tmp(src.type(), DIV_ROUND_UP(dst_bits, 32u)); in convert_int() 615 dst = bld.tmp(RegClass(RegType::vgpr, dst_bits / 8u).as_subdword()); in convert_int() 619 assert(dst.type() == RegType::sgpr || dst_bits == dst.bytes() * 8); in convert_int() 621 if (dst.bytes() == src.bytes() && dst_bits < src_bits) { in convert_int() 630 if (dst_bits == 64) in convert_int() 644 if (dst_bits == 64) { in convert_int()
|