Home
last modified time | relevance | path

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

/external/mesa3d/src/mesa/main/
Dformat_utils.h82 _mesa_float_to_unorm(float x, unsigned dst_bits) in _mesa_float_to_unorm() argument
87 return MAX_UINT(dst_bits); in _mesa_float_to_unorm()
89 return _mesa_lroundevenf(x * MAX_UINT(dst_bits)); in _mesa_float_to_unorm()
93 _mesa_half_to_unorm(uint16_t x, unsigned dst_bits) in _mesa_half_to_unorm() argument
95 return _mesa_float_to_unorm(_mesa_half_to_float(x), dst_bits); in _mesa_half_to_unorm()
99 _mesa_unorm_to_unorm(unsigned x, unsigned src_bits, unsigned dst_bits) in _mesa_unorm_to_unorm() argument
101 if (src_bits < dst_bits) { in _mesa_unorm_to_unorm()
102 return EXTEND_NORMALIZED_INT(x, src_bits, dst_bits); in _mesa_unorm_to_unorm()
103 } else if (src_bits > dst_bits) { in _mesa_unorm_to_unorm()
106 if (src_bits + dst_bits > sizeof(x) * 8) { in _mesa_unorm_to_unorm()
[all …]
Dpack.c1466 int dst_bits; in _mesa_pack_luminance_from_rgba_integer() local
1483 dst_bits = _mesa_sizeof_type(dst_type) * 8; in _mesa_pack_luminance_from_rgba_integer()
1484 assert(dst_bits > 0); in _mesa_pack_luminance_from_rgba_integer()
1498 lum32 = convert_integer_luminance64(lum64, dst_bits, in _mesa_pack_luminance_from_rgba_integer()
1533 lum32 = convert_integer_luminance64(lum64, dst_bits, in _mesa_pack_luminance_from_rgba_integer()
1535 alpha = convert_integer(rgba[i][ACOMP], dst_bits, in _mesa_pack_luminance_from_rgba_integer()
/external/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.c768 unsigned dst_bits = dst_type.sign ? dst_type.width - 1 : dst_type.width; in lp_build_packs2() local
770 ((unsigned long long)1 << dst_bits) - 1); in lp_build_packs2()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs.c1113 int dst_bits, in scale_bits() argument
1120 if (dst_bits < src_bits) { in scale_bits()
1121 int delta_bits = src_bits - dst_bits; in scale_bits()
1123 if (delta_bits <= dst_bits) { in scale_bits()
1149 lp_build_const_int_vec(gallivm, src_type, dst_bits), in scale_bits()
1155 lp_build_const_int_vec(gallivm, src_type, (1LL << dst_bits) - 1), in scale_bits()
1183 } else if (dst_bits > src_bits) { in scale_bits()
1185 int db = dst_bits - src_bits; in scale_bits()
1205 for (n = src_bits; n < dst_bits; n *= 2) { in scale_bits()