Home
last modified time | relevance | path

Searched refs:dst_bits (Results 1 – 19 of 19) sorted by relevance

/third_party/mesa3d/src/util/format/
Dformat_utils.h70 _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/
Dnir_format_convert.h179 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/
Dcomposite-traps-test.c59 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/
Dpixman-arm-simd.c142 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()
Dpixman-implementation.c235 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()
Dpixman-mips-dspr2.c215 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()
Dpixman-arm-neon.c233 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()
Dpixman-private.h491 uint32_t * dst_bits,
573 uint32_t * dst_bits,
Dpixman.c729 uint32_t *dst_bits, in pixman_blt() argument
742 src_bits, dst_bits, src_stride, dst_stride, in pixman_blt()
Dpixman.h756 uint32_t *dst_bits,
Dpixman-mmx.c3256 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()
Dpixman-sse2.c4694 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/
Dlp_bld_format_aos.c153 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()
Dlp_bld_pack.c804 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/
Dnir_to_dxil.c1613 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/
Dpack.c1451 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/
Dlp_state_fs.c1704 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/
Dac_llvm_build.c1549 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/
Daco_instruction_selection.cpp605 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()