Lines Matching refs:widths

247        * Return the per-channel bitfield widths for a given image format.
266 const color_u widths = get_bit_widths(format);
267 return color_u(0, widths.r, widths.r + widths.g,
268 widths.r + widths.g + widths.b);
277 const color_u widths = get_bit_widths(format);
278 return ((widths.g == 0 || widths.g == widths.r) &&
279 (widths.b == 0 || widths.b == widths.r) &&
280 (widths.a == 0 || widths.a == widths.r));
301 const color_u widths = get_bit_widths(format);
305 return (widths.r == lower_widths.r &&
306 widths.g == lower_widths.g &&
307 widths.b == lower_widths.b &&
308 widths.a == lower_widths.a);
679 * shifts and widths. Note that bitfield components are not allowed to
684 const color_u &shifts, const color_u &widths)
690 if (widths[c]) {
712 * shifts and widths. Note that bitfield components are not allowed to
717 const color_u &shifts, const color_u &widths)
722 if (widths[c]) {
726 brw_imm_ud(32 - shifts[c] % 32 - widths[c]));
732 offset(dst, bld, c), brw_imm_ud(32 - widths[c]));
741 * specified bit widths, properly handling overflow.
745 const color_u &widths, bool is_signed)
753 if (widths[c]) {
756 brw_imm_d((int)scale(widths[c] - s)),
762 brw_imm_d(-(int)scale(widths[c] - s) - 1),
770 if (is_signed && widths[c] < 32)
772 brw_imm_d(scale(widths[c])));
781 * and bit widths into a floating point vector.
785 const color_u &widths, bool is_signed)
791 if (widths[c]) {
797 brw_imm_f(1.0f / scale(widths[c] - s)));
811 * of the specified signedness and bit widths.
815 const color_u &widths, bool is_signed)
823 if (widths[c]) {
838 brw_imm_f((float)scale(widths[c] - s)));
849 if (is_signed && widths[c] < 32)
851 brw_imm_d(scale(widths[c])));
859 * Convert a floating point vector of the specified bit widths into a
864 const color_u &widths)
870 if (widths[c]) {
877 if (widths[c] < 16)
879 offset(dst, bld, c), brw_imm_ud(15 - widths[c]));
891 * widths.
895 const color_u &widths)
901 if (widths[c]) {
905 if (widths[c] < 16)
918 if (widths[c] < 16)
920 brw_imm_ud(15 - widths[c]));
932 const color_u &widths)
939 widths[c] ? offset(src, bld, c)