Searched refs:chan_bits (Results 1 – 3 of 3) sorted by relevance
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_format_srgb.c | 97 unsigned chan_bits, in lp_build_srgb_to_linear() argument 111 assert(chan_bits <= 8); in lp_build_srgb_to_linear() 131 if (chan_bits != 8) { in lp_build_srgb_to_linear() 134 255.0f / ((1 << chan_bits) - 1)); in lp_build_srgb_to_linear() 163 unsigned chan_bits, in lp_build_linear_to_srgb() argument 305 if (chan_bits != 8) { in lp_build_linear_to_srgb() 308 ((1 << chan_bits) - 1) / 255.0f); in lp_build_linear_to_srgb() 342 unsigned chan_bits = dst_fmt->channel[dst_fmt->swizzle[chan]].size; in lp_build_float_to_srgb_packed() local 343 tmpsrgb[chan] = lp_build_linear_to_srgb(gallivm, src_type, chan_bits, src[chan]); in lp_build_float_to_srgb_packed()
|
D | lp_bld_format.h | 251 unsigned chan_bits,
|
/third_party/mesa3d/src/intel/blorp/ |
D | blorp_blit.c | 895 const unsigned chan_bits = src_fmtl->channels_array[c].bits; in bit_cast_color() local 899 chan = nir_format_float_to_unorm(b, chan, &chan_bits); in bit_cast_color() 912 const unsigned chan_bits = dst_fmtl->channels_array[c].bits; in bit_cast_color() local 914 nir_imm_int(b, BITFIELD_MASK(chan_bits))); in bit_cast_color() 917 chans[c] = nir_format_unorm_to_float(b, chans[c], &chan_bits); in bit_cast_color()
|