Lines Matching refs:src

59 pack_ubyte_a8b8g8r8_unorm(const GLubyte src[4], void *dst)
64 _mesa_unorm_to_unorm(src[3], 8, 8);
68 _mesa_unorm_to_unorm(src[2], 8, 8);
72 _mesa_unorm_to_unorm(src[1], 8, 8);
76 _mesa_unorm_to_unorm(src[0], 8, 8);
87 pack_ubyte_x8b8g8r8_unorm(const GLubyte src[4], void *dst)
93 _mesa_unorm_to_unorm(src[2], 8, 8);
97 _mesa_unorm_to_unorm(src[1], 8, 8);
101 _mesa_unorm_to_unorm(src[0], 8, 8);
111 pack_ubyte_r8g8b8a8_unorm(const GLubyte src[4], void *dst)
116 _mesa_unorm_to_unorm(src[0], 8, 8);
120 _mesa_unorm_to_unorm(src[1], 8, 8);
124 _mesa_unorm_to_unorm(src[2], 8, 8);
128 _mesa_unorm_to_unorm(src[3], 8, 8);
139 pack_ubyte_r8g8b8x8_unorm(const GLubyte src[4], void *dst)
144 _mesa_unorm_to_unorm(src[0], 8, 8);
148 _mesa_unorm_to_unorm(src[1], 8, 8);
152 _mesa_unorm_to_unorm(src[2], 8, 8);
163 pack_ubyte_b8g8r8a8_unorm(const GLubyte src[4], void *dst)
168 _mesa_unorm_to_unorm(src[2], 8, 8);
172 _mesa_unorm_to_unorm(src[1], 8, 8);
176 _mesa_unorm_to_unorm(src[0], 8, 8);
180 _mesa_unorm_to_unorm(src[3], 8, 8);
191 pack_ubyte_b8g8r8x8_unorm(const GLubyte src[4], void *dst)
196 _mesa_unorm_to_unorm(src[2], 8, 8);
200 _mesa_unorm_to_unorm(src[1], 8, 8);
204 _mesa_unorm_to_unorm(src[0], 8, 8);
215 pack_ubyte_a8r8g8b8_unorm(const GLubyte src[4], void *dst)
220 _mesa_unorm_to_unorm(src[3], 8, 8);
224 _mesa_unorm_to_unorm(src[0], 8, 8);
228 _mesa_unorm_to_unorm(src[1], 8, 8);
232 _mesa_unorm_to_unorm(src[2], 8, 8);
243 pack_ubyte_x8r8g8b8_unorm(const GLubyte src[4], void *dst)
249 _mesa_unorm_to_unorm(src[0], 8, 8);
253 _mesa_unorm_to_unorm(src[1], 8, 8);
257 _mesa_unorm_to_unorm(src[2], 8, 8);
267 pack_ubyte_l16a16_unorm(const GLubyte src[4], void *dst)
272 _mesa_unorm_to_unorm(src[0], 8, 16);
276 _mesa_unorm_to_unorm(src[3], 8, 16);
285 pack_ubyte_a16l16_unorm(const GLubyte src[4], void *dst)
290 _mesa_unorm_to_unorm(src[3], 8, 16);
294 _mesa_unorm_to_unorm(src[0], 8, 16);
303 pack_ubyte_b5g6r5_unorm(const GLubyte src[4], void *dst)
308 _mesa_unorm_to_unorm(src[2], 8, 5);
312 _mesa_unorm_to_unorm(src[1], 8, 6);
316 _mesa_unorm_to_unorm(src[0], 8, 5);
326 pack_ubyte_r5g6b5_unorm(const GLubyte src[4], void *dst)
331 _mesa_unorm_to_unorm(src[0], 8, 5);
335 _mesa_unorm_to_unorm(src[1], 8, 6);
339 _mesa_unorm_to_unorm(src[2], 8, 5);
349 pack_ubyte_b4g4r4a4_unorm(const GLubyte src[4], void *dst)
354 _mesa_unorm_to_unorm(src[2], 8, 4);
358 _mesa_unorm_to_unorm(src[1], 8, 4);
362 _mesa_unorm_to_unorm(src[0], 8, 4);
366 _mesa_unorm_to_unorm(src[3], 8, 4);
377 pack_ubyte_b4g4r4x4_unorm(const GLubyte src[4], void *dst)
382 _mesa_unorm_to_unorm(src[2], 8, 4);
386 _mesa_unorm_to_unorm(src[1], 8, 4);
390 _mesa_unorm_to_unorm(src[0], 8, 4);
401 pack_ubyte_a4r4g4b4_unorm(const GLubyte src[4], void *dst)
406 _mesa_unorm_to_unorm(src[3], 8, 4);
410 _mesa_unorm_to_unorm(src[0], 8, 4);
414 _mesa_unorm_to_unorm(src[1], 8, 4);
418 _mesa_unorm_to_unorm(src[2], 8, 4);
429 pack_ubyte_a1b5g5r5_unorm(const GLubyte src[4], void *dst)
434 _mesa_unorm_to_unorm(src[3], 8, 1);
438 _mesa_unorm_to_unorm(src[2], 8, 5);
442 _mesa_unorm_to_unorm(src[1], 8, 5);
446 _mesa_unorm_to_unorm(src[0], 8, 5);
457 pack_ubyte_x1b5g5r5_unorm(const GLubyte src[4], void *dst)
463 _mesa_unorm_to_unorm(src[2], 8, 5);
467 _mesa_unorm_to_unorm(src[1], 8, 5);
471 _mesa_unorm_to_unorm(src[0], 8, 5);
481 pack_ubyte_b5g5r5a1_unorm(const GLubyte src[4], void *dst)
486 _mesa_unorm_to_unorm(src[2], 8, 5);
490 _mesa_unorm_to_unorm(src[1], 8, 5);
494 _mesa_unorm_to_unorm(src[0], 8, 5);
498 _mesa_unorm_to_unorm(src[3], 8, 1);
509 pack_ubyte_b5g5r5x1_unorm(const GLubyte src[4], void *dst)
514 _mesa_unorm_to_unorm(src[2], 8, 5);
518 _mesa_unorm_to_unorm(src[1], 8, 5);
522 _mesa_unorm_to_unorm(src[0], 8, 5);
533 pack_ubyte_a1r5g5b5_unorm(const GLubyte src[4], void *dst)
538 _mesa_unorm_to_unorm(src[3], 8, 1);
542 _mesa_unorm_to_unorm(src[0], 8, 5);
546 _mesa_unorm_to_unorm(src[1], 8, 5);
550 _mesa_unorm_to_unorm(src[2], 8, 5);
561 pack_ubyte_l8a8_unorm(const GLubyte src[4], void *dst)
566 _mesa_unorm_to_unorm(src[0], 8, 8);
570 _mesa_unorm_to_unorm(src[3], 8, 8);
579 pack_ubyte_a8l8_unorm(const GLubyte src[4], void *dst)
584 _mesa_unorm_to_unorm(src[3], 8, 8);
588 _mesa_unorm_to_unorm(src[0], 8, 8);
597 pack_ubyte_r8g8_unorm(const GLubyte src[4], void *dst)
602 _mesa_unorm_to_unorm(src[0], 8, 8);
606 _mesa_unorm_to_unorm(src[1], 8, 8);
615 pack_ubyte_g8r8_unorm(const GLubyte src[4], void *dst)
620 _mesa_unorm_to_unorm(src[1], 8, 8);
624 _mesa_unorm_to_unorm(src[0], 8, 8);
633 pack_ubyte_l4a4_unorm(const GLubyte src[4], void *dst)
638 _mesa_unorm_to_unorm(src[0], 8, 4);
642 _mesa_unorm_to_unorm(src[3], 8, 4);
651 pack_ubyte_b2g3r3_unorm(const GLubyte src[4], void *dst)
656 _mesa_unorm_to_unorm(src[2], 8, 2);
660 _mesa_unorm_to_unorm(src[1], 8, 3);
664 _mesa_unorm_to_unorm(src[0], 8, 3);
674 pack_ubyte_r16g16_unorm(const GLubyte src[4], void *dst)
679 _mesa_unorm_to_unorm(src[0], 8, 16);
683 _mesa_unorm_to_unorm(src[1], 8, 16);
692 pack_ubyte_g16r16_unorm(const GLubyte src[4], void *dst)
697 _mesa_unorm_to_unorm(src[1], 8, 16);
701 _mesa_unorm_to_unorm(src[0], 8, 16);
710 pack_ubyte_b10g10r10a2_unorm(const GLubyte src[4], void *dst)
715 _mesa_unorm_to_unorm(src[2], 8, 10);
719 _mesa_unorm_to_unorm(src[1], 8, 10);
723 _mesa_unorm_to_unorm(src[0], 8, 10);
727 _mesa_unorm_to_unorm(src[3], 8, 2);
738 pack_ubyte_b10g10r10x2_unorm(const GLubyte src[4], void *dst)
743 _mesa_unorm_to_unorm(src[2], 8, 10);
747 _mesa_unorm_to_unorm(src[1], 8, 10);
751 _mesa_unorm_to_unorm(src[0], 8, 10);
762 pack_ubyte_r10g10b10a2_unorm(const GLubyte src[4], void *dst)
767 _mesa_unorm_to_unorm(src[0], 8, 10);
771 _mesa_unorm_to_unorm(src[1], 8, 10);
775 _mesa_unorm_to_unorm(src[2], 8, 10);
779 _mesa_unorm_to_unorm(src[3], 8, 2);
790 pack_ubyte_r10g10b10x2_unorm(const GLubyte src[4], void *dst)
795 _mesa_unorm_to_unorm(src[0], 8, 10);
799 _mesa_unorm_to_unorm(src[1], 8, 10);
803 _mesa_unorm_to_unorm(src[2], 8, 10);
814 pack_ubyte_r3g3b2_unorm(const GLubyte src[4], void *dst)
819 _mesa_unorm_to_unorm(src[0], 8, 3);
823 _mesa_unorm_to_unorm(src[1], 8, 3);
827 _mesa_unorm_to_unorm(src[2], 8, 2);
837 pack_ubyte_a4b4g4r4_unorm(const GLubyte src[4], void *dst)
842 _mesa_unorm_to_unorm(src[3], 8, 4);
846 _mesa_unorm_to_unorm(src[2], 8, 4);
850 _mesa_unorm_to_unorm(src[1], 8, 4);
854 _mesa_unorm_to_unorm(src[0], 8, 4);
865 pack_ubyte_r4g4b4a4_unorm(const GLubyte src[4], void *dst)
870 _mesa_unorm_to_unorm(src[0], 8, 4);
874 _mesa_unorm_to_unorm(src[1], 8, 4);
878 _mesa_unorm_to_unorm(src[2], 8, 4);
882 _mesa_unorm_to_unorm(src[3], 8, 4);
893 pack_ubyte_r5g5b5a1_unorm(const GLubyte src[4], void *dst)
898 _mesa_unorm_to_unorm(src[0], 8, 5);
902 _mesa_unorm_to_unorm(src[1], 8, 5);
906 _mesa_unorm_to_unorm(src[2], 8, 5);
910 _mesa_unorm_to_unorm(src[3], 8, 1);
921 pack_ubyte_a2b10g10r10_unorm(const GLubyte src[4], void *dst)
926 _mesa_unorm_to_unorm(src[3], 8, 2);
930 _mesa_unorm_to_unorm(src[2], 8, 10);
934 _mesa_unorm_to_unorm(src[1], 8, 10);
938 _mesa_unorm_to_unorm(src[0], 8, 10);
949 pack_ubyte_a2r10g10b10_unorm(const GLubyte src[4], void *dst)
954 _mesa_unorm_to_unorm(src[3], 8, 2);
958 _mesa_unorm_to_unorm(src[0], 8, 10);
962 _mesa_unorm_to_unorm(src[1], 8, 10);
966 _mesa_unorm_to_unorm(src[2], 8, 10);
977 pack_ubyte_a_unorm8(const GLubyte src[4], void *dst)
982 _mesa_unorm_to_unorm(src[3], 8, 8);
989 pack_ubyte_a_unorm16(const GLubyte src[4], void *dst)
994 _mesa_unorm_to_unorm(src[3], 8, 16);
1001 pack_ubyte_l_unorm8(const GLubyte src[4], void *dst)
1006 _mesa_unorm_to_unorm(src[0], 8, 8);
1013 pack_ubyte_l_unorm16(const GLubyte src[4], void *dst)
1018 _mesa_unorm_to_unorm(src[0], 8, 16);
1025 pack_ubyte_i_unorm8(const GLubyte src[4], void *dst)
1030 _mesa_unorm_to_unorm(src[0], 8, 8);
1037 pack_ubyte_i_unorm16(const GLubyte src[4], void *dst)
1042 _mesa_unorm_to_unorm(src[0], 8, 16);
1049 pack_ubyte_r_unorm8(const GLubyte src[4], void *dst)
1054 _mesa_unorm_to_unorm(src[0], 8, 8);
1061 pack_ubyte_r_unorm16(const GLubyte src[4], void *dst)
1066 _mesa_unorm_to_unorm(src[0], 8, 16);
1073 pack_ubyte_bgr_unorm8(const GLubyte src[4], void *dst)
1078 _mesa_unorm_to_unorm(src[2], 8, 8);
1082 _mesa_unorm_to_unorm(src[1], 8, 8);
1086 _mesa_unorm_to_unorm(src[0], 8, 8);
1095 pack_ubyte_rgb_unorm8(const GLubyte src[4], void *dst)
1100 _mesa_unorm_to_unorm(src[0], 8, 8);
1104 _mesa_unorm_to_unorm(src[1], 8, 8);
1108 _mesa_unorm_to_unorm(src[2], 8, 8);
1117 pack_ubyte_rgba_unorm16(const GLubyte src[4], void *dst)
1122 _mesa_unorm_to_unorm(src[0], 8, 16);
1126 _mesa_unorm_to_unorm(src[1], 8, 16);
1130 _mesa_unorm_to_unorm(src[2], 8, 16);
1134 _mesa_unorm_to_unorm(src[3], 8, 16);
1144 pack_ubyte_rgbx_unorm16(const GLubyte src[4], void *dst)
1149 _mesa_unorm_to_unorm(src[0], 8, 16);
1153 _mesa_unorm_to_unorm(src[1], 8, 16);
1157 _mesa_unorm_to_unorm(src[2], 8, 16);
1167 pack_ubyte_a8b8g8r8_snorm(const GLubyte src[4], void *dst)
1172 _mesa_unorm_to_snorm(src[3], 8, 8);
1176 _mesa_unorm_to_snorm(src[2], 8, 8);
1180 _mesa_unorm_to_snorm(src[1], 8, 8);
1184 _mesa_unorm_to_snorm(src[0], 8, 8);
1195 pack_ubyte_x8b8g8r8_snorm(const GLubyte src[4], void *dst)
1201 _mesa_unorm_to_snorm(src[2], 8, 8);
1205 _mesa_unorm_to_snorm(src[1], 8, 8);
1209 _mesa_unorm_to_snorm(src[0], 8, 8);
1219 pack_ubyte_r8g8b8a8_snorm(const GLubyte src[4], void *dst)
1224 _mesa_unorm_to_snorm(src[0], 8, 8);
1228 _mesa_unorm_to_snorm(src[1], 8, 8);
1232 _mesa_unorm_to_snorm(src[2], 8, 8);
1236 _mesa_unorm_to_snorm(src[3], 8, 8);
1247 pack_ubyte_r8g8b8x8_snorm(const GLubyte src[4], void *dst)
1252 _mesa_unorm_to_snorm(src[0], 8, 8);
1256 _mesa_unorm_to_snorm(src[1], 8, 8);
1260 _mesa_unorm_to_snorm(src[2], 8, 8);
1271 pack_ubyte_r16g16_snorm(const GLubyte src[4], void *dst)
1276 _mesa_unorm_to_snorm(src[0], 8, 16);
1280 _mesa_unorm_to_snorm(src[1], 8, 16);
1289 pack_ubyte_g16r16_snorm(const GLubyte src[4], void *dst)
1294 _mesa_unorm_to_snorm(src[1], 8, 16);
1298 _mesa_unorm_to_snorm(src[0], 8, 16);
1307 pack_ubyte_r8g8_snorm(const GLubyte src[4], void *dst)
1312 _mesa_unorm_to_snorm(src[0], 8, 8);
1316 _mesa_unorm_to_snorm(src[1], 8, 8);
1325 pack_ubyte_g8r8_snorm(const GLubyte src[4], void *dst)
1330 _mesa_unorm_to_snorm(src[1], 8, 8);
1334 _mesa_unorm_to_snorm(src[0], 8, 8);
1343 pack_ubyte_l8a8_snorm(const GLubyte src[4], void *dst)
1348 _mesa_unorm_to_snorm(src[0], 8, 8);
1352 _mesa_unorm_to_snorm(src[3], 8, 8);
1361 pack_ubyte_a8l8_snorm(const GLubyte src[4], void *dst)
1366 _mesa_unorm_to_snorm(src[3], 8, 8);
1370 _mesa_unorm_to_snorm(src[0], 8, 8);
1379 pack_ubyte_a_snorm8(const GLubyte src[4], void *dst)
1384 _mesa_unorm_to_snorm(src[3], 8, 8);
1391 pack_ubyte_a_snorm16(const GLubyte src[4], void *dst)
1396 _mesa_unorm_to_snorm(src[3], 8, 16);
1403 pack_ubyte_l_snorm8(const GLubyte src[4], void *dst)
1408 _mesa_unorm_to_snorm(src[0], 8, 8);
1415 pack_ubyte_l_snorm16(const GLubyte src[4], void *dst)
1420 _mesa_unorm_to_snorm(src[0], 8, 16);
1427 pack_ubyte_i_snorm8(const GLubyte src[4], void *dst)
1432 _mesa_unorm_to_snorm(src[0], 8, 8);
1439 pack_ubyte_i_snorm16(const GLubyte src[4], void *dst)
1444 _mesa_unorm_to_snorm(src[0], 8, 16);
1451 pack_ubyte_r_snorm8(const GLubyte src[4], void *dst)
1456 _mesa_unorm_to_snorm(src[0], 8, 8);
1463 pack_ubyte_r_snorm16(const GLubyte src[4], void *dst)
1468 _mesa_unorm_to_snorm(src[0], 8, 16);
1475 pack_ubyte_la_snorm16(const GLubyte src[4], void *dst)
1480 _mesa_unorm_to_snorm(src[0], 8, 16);
1484 _mesa_unorm_to_snorm(src[3], 8, 16);
1492 pack_ubyte_rgb_snorm16(const GLubyte src[4], void *dst)
1497 _mesa_unorm_to_snorm(src[0], 8, 16);
1501 _mesa_unorm_to_snorm(src[1], 8, 16);
1505 _mesa_unorm_to_snorm(src[2], 8, 16);
1514 pack_ubyte_rgba_snorm16(const GLubyte src[4], void *dst)
1519 _mesa_unorm_to_snorm(src[0], 8, 16);
1523 _mesa_unorm_to_snorm(src[1], 8, 16);
1527 _mesa_unorm_to_snorm(src[2], 8, 16);
1531 _mesa_unorm_to_snorm(src[3], 8, 16);
1541 pack_ubyte_rgbx_snorm16(const GLubyte src[4], void *dst)
1546 _mesa_unorm_to_snorm(src[0], 8, 16);
1550 _mesa_unorm_to_snorm(src[1], 8, 16);
1554 _mesa_unorm_to_snorm(src[2], 8, 16);
1564 pack_ubyte_a8b8g8r8_srgb(const GLubyte src[4], void *dst)
1569 _mesa_unorm_to_unorm(src[3], 8, 8);
1574 util_format_linear_to_srgb_8unorm(src[2]);
1579 util_format_linear_to_srgb_8unorm(src[1]);
1584 util_format_linear_to_srgb_8unorm(src[0]);
1595 pack_ubyte_b8g8r8a8_srgb(const GLubyte src[4], void *dst)
1601 util_format_linear_to_srgb_8unorm(src[2]);
1606 util_format_linear_to_srgb_8unorm(src[1]);
1611 util_format_linear_to_srgb_8unorm(src[0]);
1615 _mesa_unorm_to_unorm(src[3], 8, 8);
1626 pack_ubyte_a8r8g8b8_srgb(const GLubyte src[4], void *dst)
1631 _mesa_unorm_to_unorm(src[3], 8, 8);
1636 util_format_linear_to_srgb_8unorm(src[0]);
1641 util_format_linear_to_srgb_8unorm(src[1]);
1646 util_format_linear_to_srgb_8unorm(src[2]);
1657 pack_ubyte_b8g8r8x8_srgb(const GLubyte src[4], void *dst)
1663 util_format_linear_to_srgb_8unorm(src[2]);
1668 util_format_linear_to_srgb_8unorm(src[1]);
1673 util_format_linear_to_srgb_8unorm(src[0]);
1684 pack_ubyte_x8r8g8b8_srgb(const GLubyte src[4], void *dst)
1691 util_format_linear_to_srgb_8unorm(src[0]);
1696 util_format_linear_to_srgb_8unorm(src[1]);
1701 util_format_linear_to_srgb_8unorm(src[2]);
1711 pack_ubyte_r8g8b8a8_srgb(const GLubyte src[4], void *dst)
1717 util_format_linear_to_srgb_8unorm(src[0]);
1722 util_format_linear_to_srgb_8unorm(src[1]);
1727 util_format_linear_to_srgb_8unorm(src[2]);
1731 _mesa_unorm_to_unorm(src[3], 8, 8);
1742 pack_ubyte_r8g8b8x8_srgb(const GLubyte src[4], void *dst)
1748 util_format_linear_to_srgb_8unorm(src[0]);
1753 util_format_linear_to_srgb_8unorm(src[1]);
1758 util_format_linear_to_srgb_8unorm(src[2]);
1769 pack_ubyte_x8b8g8r8_srgb(const GLubyte src[4], void *dst)
1776 util_format_linear_to_srgb_8unorm(src[2]);
1781 util_format_linear_to_srgb_8unorm(src[1]);
1786 util_format_linear_to_srgb_8unorm(src[0]);
1796 pack_ubyte_l8a8_srgb(const GLubyte src[4], void *dst)
1801 _mesa_unorm_to_unorm(src[0], 8, 8);
1805 _mesa_unorm_to_unorm(src[3], 8, 8);
1814 pack_ubyte_a8l8_srgb(const GLubyte src[4], void *dst)
1819 _mesa_unorm_to_unorm(src[3], 8, 8);
1823 _mesa_unorm_to_unorm(src[0], 8, 8);
1832 pack_ubyte_r_srgb8(const GLubyte src[4], void *dst)
1838 util_format_linear_to_srgb_8unorm(src[0]);
1845 pack_ubyte_l_srgb8(const GLubyte src[4], void *dst)
1850 _mesa_unorm_to_unorm(src[0], 8, 8);
1857 pack_ubyte_bgr_srgb8(const GLubyte src[4], void *dst)
1863 util_format_linear_to_srgb_8unorm(src[2]);
1868 util_format_linear_to_srgb_8unorm(src[1]);
1873 util_format_linear_to_srgb_8unorm(src[0]);
1882 pack_ubyte_a_float16(const GLubyte src[4], void *dst)
1887 _mesa_unorm_to_half(src[3], 8);
1894 pack_ubyte_a_float32(const GLubyte src[4], void *dst)
1899 _mesa_unorm_to_float(src[3], 8);
1906 pack_ubyte_l_float16(const GLubyte src[4], void *dst)
1911 _mesa_unorm_to_half(src[0], 8);
1918 pack_ubyte_l_float32(const GLubyte src[4], void *dst)
1923 _mesa_unorm_to_float(src[0], 8);
1930 pack_ubyte_la_float16(const GLubyte src[4], void *dst)
1935 _mesa_unorm_to_half(src[0], 8);
1939 _mesa_unorm_to_half(src[3], 8);
1947 pack_ubyte_la_float32(const GLubyte src[4], void *dst)
1952 _mesa_unorm_to_float(src[0], 8);
1956 _mesa_unorm_to_float(src[3], 8);
1964 pack_ubyte_i_float16(const GLubyte src[4], void *dst)
1969 _mesa_unorm_to_half(src[0], 8);
1976 pack_ubyte_i_float32(const GLubyte src[4], void *dst)
1981 _mesa_unorm_to_float(src[0], 8);
1988 pack_ubyte_r_float16(const GLubyte src[4], void *dst)
1993 _mesa_unorm_to_half(src[0], 8);
2000 pack_ubyte_r_float32(const GLubyte src[4], void *dst)
2005 _mesa_unorm_to_float(src[0], 8);
2012 pack_ubyte_rg_float16(const GLubyte src[4], void *dst)
2017 _mesa_unorm_to_half(src[0], 8);
2021 _mesa_unorm_to_half(src[1], 8);
2029 pack_ubyte_rg_float32(const GLubyte src[4], void *dst)
2034 _mesa_unorm_to_float(src[0], 8);
2038 _mesa_unorm_to_float(src[1], 8);
2046 pack_ubyte_rgb_float16(const GLubyte src[4], void *dst)
2051 _mesa_unorm_to_half(src[0], 8);
2055 _mesa_unorm_to_half(src[1], 8);
2059 _mesa_unorm_to_half(src[2], 8);
2068 pack_ubyte_rgb_float32(const GLubyte src[4], void *dst)
2073 _mesa_unorm_to_float(src[0], 8);
2077 _mesa_unorm_to_float(src[1], 8);
2081 _mesa_unorm_to_float(src[2], 8);
2090 pack_ubyte_rgba_float16(const GLubyte src[4], void *dst)
2095 _mesa_unorm_to_half(src[0], 8);
2099 _mesa_unorm_to_half(src[1], 8);
2103 _mesa_unorm_to_half(src[2], 8);
2107 _mesa_unorm_to_half(src[3], 8);
2117 pack_ubyte_rgba_float32(const GLubyte src[4], void *dst)
2122 _mesa_unorm_to_float(src[0], 8);
2126 _mesa_unorm_to_float(src[1], 8);
2130 _mesa_unorm_to_float(src[2], 8);
2134 _mesa_unorm_to_float(src[3], 8);
2144 pack_ubyte_rgbx_float16(const GLubyte src[4], void *dst)
2149 _mesa_unorm_to_half(src[0], 8);
2153 _mesa_unorm_to_half(src[1], 8);
2157 _mesa_unorm_to_half(src[2], 8);
2167 pack_ubyte_rgbx_float32(const GLubyte src[4], void *dst)
2172 _mesa_unorm_to_float(src[0], 8);
2176 _mesa_unorm_to_float(src[1], 8);
2180 _mesa_unorm_to_float(src[2], 8);
2190 pack_ubyte_a8b8g8r8_uint(const GLubyte src[4], void *dst)
2195 _mesa_unsigned_to_unsigned(src[3], 8);
2199 _mesa_unsigned_to_unsigned(src[2], 8);
2203 _mesa_unsigned_to_unsigned(src[1], 8);
2207 _mesa_unsigned_to_unsigned(src[0], 8);
2218 pack_ubyte_a8r8g8b8_uint(const GLubyte src[4], void *dst)
2223 _mesa_unsigned_to_unsigned(src[3], 8);
2227 _mesa_unsigned_to_unsigned(src[0], 8);
2231 _mesa_unsigned_to_unsigned(src[1], 8);
2235 _mesa_unsigned_to_unsigned(src[2], 8);
2246 pack_ubyte_r8g8b8a8_uint(const GLubyte src[4], void *dst)
2251 _mesa_unsigned_to_unsigned(src[0], 8);
2255 _mesa_unsigned_to_unsigned(src[1], 8);
2259 _mesa_unsigned_to_unsigned(src[2], 8);
2263 _mesa_unsigned_to_unsigned(src[3], 8);
2274 pack_ubyte_b8g8r8a8_uint(const GLubyte src[4], void *dst)
2279 _mesa_unsigned_to_unsigned(src[2], 8);
2283 _mesa_unsigned_to_unsigned(src[1], 8);
2287 _mesa_unsigned_to_unsigned(src[0], 8);
2291 _mesa_unsigned_to_unsigned(src[3], 8);
2302 pack_ubyte_b10g10r10a2_uint(const GLubyte src[4], void *dst)
2307 _mesa_unsigned_to_unsigned(src[2], 10);
2311 _mesa_unsigned_to_unsigned(src[1], 10);
2315 _mesa_unsigned_to_unsigned(src[0], 10);
2319 _mesa_unsigned_to_unsigned(src[3], 2);
2330 pack_ubyte_r10g10b10a2_uint(const GLubyte src[4], void *dst)
2335 _mesa_unsigned_to_unsigned(src[0], 10);
2339 _mesa_unsigned_to_unsigned(src[1], 10);
2343 _mesa_unsigned_to_unsigned(src[2], 10);
2347 _mesa_unsigned_to_unsigned(src[3], 2);
2358 pack_ubyte_a2b10g10r10_uint(const GLubyte src[4], void *dst)
2363 _mesa_unsigned_to_unsigned(src[3], 2);
2367 _mesa_unsigned_to_unsigned(src[2], 10);
2371 _mesa_unsigned_to_unsigned(src[1], 10);
2375 _mesa_unsigned_to_unsigned(src[0], 10);
2386 pack_ubyte_a2r10g10b10_uint(const GLubyte src[4], void *dst)
2391 _mesa_unsigned_to_unsigned(src[3], 2);
2395 _mesa_unsigned_to_unsigned(src[0], 10);
2399 _mesa_unsigned_to_unsigned(src[1], 10);
2403 _mesa_unsigned_to_unsigned(src[2], 10);
2414 pack_ubyte_b5g6r5_uint(const GLubyte src[4], void *dst)
2419 _mesa_unsigned_to_unsigned(src[2], 5);
2423 _mesa_unsigned_to_unsigned(src[1], 6);
2427 _mesa_unsigned_to_unsigned(src[0], 5);
2437 pack_ubyte_r5g6b5_uint(const GLubyte src[4], void *dst)
2442 _mesa_unsigned_to_unsigned(src[0], 5);
2446 _mesa_unsigned_to_unsigned(src[1], 6);
2450 _mesa_unsigned_to_unsigned(src[2], 5);
2460 pack_ubyte_b2g3r3_uint(const GLubyte src[4], void *dst)
2465 _mesa_unsigned_to_unsigned(src[2], 2);
2469 _mesa_unsigned_to_unsigned(src[1], 3);
2473 _mesa_unsigned_to_unsigned(src[0], 3);
2483 pack_ubyte_r3g3b2_uint(const GLubyte src[4], void *dst)
2488 _mesa_unsigned_to_unsigned(src[0], 3);
2492 _mesa_unsigned_to_unsigned(src[1], 3);
2496 _mesa_unsigned_to_unsigned(src[2], 2);
2506 pack_ubyte_a4b4g4r4_uint(const GLubyte src[4], void *dst)
2511 _mesa_unsigned_to_unsigned(src[3], 4);
2515 _mesa_unsigned_to_unsigned(src[2], 4);
2519 _mesa_unsigned_to_unsigned(src[1], 4);
2523 _mesa_unsigned_to_unsigned(src[0], 4);
2534 pack_ubyte_r4g4b4a4_uint(const GLubyte src[4], void *dst)
2539 _mesa_unsigned_to_unsigned(src[0], 4);
2543 _mesa_unsigned_to_unsigned(src[1], 4);
2547 _mesa_unsigned_to_unsigned(src[2], 4);
2551 _mesa_unsigned_to_unsigned(src[3], 4);
2562 pack_ubyte_b4g4r4a4_uint(const GLubyte src[4], void *dst)
2567 _mesa_unsigned_to_unsigned(src[2], 4);
2571 _mesa_unsigned_to_unsigned(src[1], 4);
2575 _mesa_unsigned_to_unsigned(src[0], 4);
2579 _mesa_unsigned_to_unsigned(src[3], 4);
2590 pack_ubyte_a4r4g4b4_uint(const GLubyte src[4], void *dst)
2595 _mesa_unsigned_to_unsigned(src[3], 4);
2599 _mesa_unsigned_to_unsigned(src[0], 4);
2603 _mesa_unsigned_to_unsigned(src[1], 4);
2607 _mesa_unsigned_to_unsigned(src[2], 4);
2618 pack_ubyte_a1b5g5r5_uint(const GLubyte src[4], void *dst)
2623 _mesa_unsigned_to_unsigned(src[3], 1);
2627 _mesa_unsigned_to_unsigned(src[2], 5);
2631 _mesa_unsigned_to_unsigned(src[1], 5);
2635 _mesa_unsigned_to_unsigned(src[0], 5);
2646 pack_ubyte_b5g5r5a1_uint(const GLubyte src[4], void *dst)
2651 _mesa_unsigned_to_unsigned(src[2], 5);
2655 _mesa_unsigned_to_unsigned(src[1], 5);
2659 _mesa_unsigned_to_unsigned(src[0], 5);
2663 _mesa_unsigned_to_unsigned(src[3], 1);
2674 pack_ubyte_a1r5g5b5_uint(const GLubyte src[4], void *dst)
2679 _mesa_unsigned_to_unsigned(src[3], 1);
2683 _mesa_unsigned_to_unsigned(src[0], 5);
2687 _mesa_unsigned_to_unsigned(src[1], 5);
2691 _mesa_unsigned_to_unsigned(src[2], 5);
2702 pack_ubyte_r5g5b5a1_uint(const GLubyte src[4], void *dst)
2707 _mesa_unsigned_to_unsigned(src[0], 5);
2711 _mesa_unsigned_to_unsigned(src[1], 5);
2715 _mesa_unsigned_to_unsigned(src[2], 5);
2719 _mesa_unsigned_to_unsigned(src[3], 1);
2730 pack_ubyte_a_uint8(const GLubyte src[4], void *dst)
2735 _mesa_unsigned_to_unsigned(src[3], 8);
2742 pack_ubyte_a_uint16(const GLubyte src[4], void *dst)
2747 _mesa_unsigned_to_unsigned(src[3], 16);
2754 pack_ubyte_a_uint32(const GLubyte src[4], void *dst)
2759 _mesa_unsigned_to_unsigned(src[3], 32);
2766 pack_ubyte_a_sint8(const GLubyte src[4], void *dst)
2771 _mesa_unsigned_to_signed(src[3], 8);
2778 pack_ubyte_a_sint16(const GLubyte src[4], void *dst)
2783 _mesa_unsigned_to_signed(src[3], 16);
2790 pack_ubyte_a_sint32(const GLubyte src[4], void *dst)
2795 _mesa_unsigned_to_signed(src[3], 32);
2802 pack_ubyte_i_uint8(const GLubyte src[4], void *dst)
2807 _mesa_unsigned_to_unsigned(src[0], 8);
2814 pack_ubyte_i_uint16(const GLubyte src[4], void *dst)
2819 _mesa_unsigned_to_unsigned(src[0], 16);
2826 pack_ubyte_i_uint32(const GLubyte src[4], void *dst)
2831 _mesa_unsigned_to_unsigned(src[0], 32);
2838 pack_ubyte_i_sint8(const GLubyte src[4], void *dst)
2843 _mesa_unsigned_to_signed(src[0], 8);
2850 pack_ubyte_i_sint16(const GLubyte src[4], void *dst)
2855 _mesa_unsigned_to_signed(src[0], 16);
2862 pack_ubyte_i_sint32(const GLubyte src[4], void *dst)
2867 _mesa_unsigned_to_signed(src[0], 32);
2874 pack_ubyte_l_uint8(const GLubyte src[4], void *dst)
2879 _mesa_unsigned_to_unsigned(src[0], 8);
2886 pack_ubyte_l_uint16(const GLubyte src[4], void *dst)
2891 _mesa_unsigned_to_unsigned(src[0], 16);
2898 pack_ubyte_l_uint32(const GLubyte src[4], void *dst)
2903 _mesa_unsigned_to_unsigned(src[0], 32);
2910 pack_ubyte_l_sint8(const GLubyte src[4], void *dst)
2915 _mesa_unsigned_to_signed(src[0], 8);
2922 pack_ubyte_l_sint16(const GLubyte src[4], void *dst)
2927 _mesa_unsigned_to_signed(src[0], 16);
2934 pack_ubyte_l_sint32(const GLubyte src[4], void *dst)
2939 _mesa_unsigned_to_signed(src[0], 32);
2946 pack_ubyte_la_uint8(const GLubyte src[4], void *dst)
2951 _mesa_unsigned_to_unsigned(src[0], 8);
2955 _mesa_unsigned_to_unsigned(src[3], 8);
2963 pack_ubyte_la_uint16(const GLubyte src[4], void *dst)
2968 _mesa_unsigned_to_unsigned(src[0], 16);
2972 _mesa_unsigned_to_unsigned(src[3], 16);
2980 pack_ubyte_la_uint32(const GLubyte src[4], void *dst)
2985 _mesa_unsigned_to_unsigned(src[0], 32);
2989 _mesa_unsigned_to_unsigned(src[3], 32);
2997 pack_ubyte_la_sint8(const GLubyte src[4], void *dst)
3002 _mesa_unsigned_to_signed(src[0], 8);
3006 _mesa_unsigned_to_signed(src[3], 8);
3014 pack_ubyte_la_sint16(const GLubyte src[4], void *dst)
3019 _mesa_unsigned_to_signed(src[0], 16);
3023 _mesa_unsigned_to_signed(src[3], 16);
3031 pack_ubyte_la_sint32(const GLubyte src[4], void *dst)
3036 _mesa_unsigned_to_signed(src[0], 32);
3040 _mesa_unsigned_to_signed(src[3], 32);
3048 pack_ubyte_r_uint8(const GLubyte src[4], void *dst)
3053 _mesa_unsigned_to_unsigned(src[0], 8);
3060 pack_ubyte_r_uint16(const GLubyte src[4], void *dst)
3065 _mesa_unsigned_to_unsigned(src[0], 16);
3072 pack_ubyte_r_uint32(const GLubyte src[4], void *dst)
3077 _mesa_unsigned_to_unsigned(src[0], 32);
3084 pack_ubyte_r_sint8(const GLubyte src[4], void *dst)
3089 _mesa_unsigned_to_signed(src[0], 8);
3096 pack_ubyte_r_sint16(const GLubyte src[4], void *dst)
3101 _mesa_unsigned_to_signed(src[0], 16);
3108 pack_ubyte_r_sint32(const GLubyte src[4], void *dst)
3113 _mesa_unsigned_to_signed(src[0], 32);
3120 pack_ubyte_rg_uint8(const GLubyte src[4], void *dst)
3125 _mesa_unsigned_to_unsigned(src[0], 8);
3129 _mesa_unsigned_to_unsigned(src[1], 8);
3137 pack_ubyte_rg_uint16(const GLubyte src[4], void *dst)
3142 _mesa_unsigned_to_unsigned(src[0], 16);
3146 _mesa_unsigned_to_unsigned(src[1], 16);
3154 pack_ubyte_rg_uint32(const GLubyte src[4], void *dst)
3159 _mesa_unsigned_to_unsigned(src[0], 32);
3163 _mesa_unsigned_to_unsigned(src[1], 32);
3171 pack_ubyte_rg_sint8(const GLubyte src[4], void *dst)
3176 _mesa_unsigned_to_signed(src[0], 8);
3180 _mesa_unsigned_to_signed(src[1], 8);
3188 pack_ubyte_rg_sint16(const GLubyte src[4], void *dst)
3193 _mesa_unsigned_to_signed(src[0], 16);
3197 _mesa_unsigned_to_signed(src[1], 16);
3205 pack_ubyte_rg_sint32(const GLubyte src[4], void *dst)
3210 _mesa_unsigned_to_signed(src[0], 32);
3214 _mesa_unsigned_to_signed(src[1], 32);
3222 pack_ubyte_rgb_uint8(const GLubyte src[4], void *dst)
3227 _mesa_unsigned_to_unsigned(src[0], 8);
3231 _mesa_unsigned_to_unsigned(src[1], 8);
3235 _mesa_unsigned_to_unsigned(src[2], 8);
3244 pack_ubyte_rgb_uint16(const GLubyte src[4], void *dst)
3249 _mesa_unsigned_to_unsigned(src[0], 16);
3253 _mesa_unsigned_to_unsigned(src[1], 16);
3257 _mesa_unsigned_to_unsigned(src[2], 16);
3266 pack_ubyte_rgb_uint32(const GLubyte src[4], void *dst)
3271 _mesa_unsigned_to_unsigned(src[0], 32);
3275 _mesa_unsigned_to_unsigned(src[1], 32);
3279 _mesa_unsigned_to_unsigned(src[2], 32);
3288 pack_ubyte_rgb_sint8(const GLubyte src[4], void *dst)
3293 _mesa_unsigned_to_signed(src[0], 8);
3297 _mesa_unsigned_to_signed(src[1], 8);
3301 _mesa_unsigned_to_signed(src[2], 8);
3310 pack_ubyte_rgb_sint16(const GLubyte src[4], void *dst)
3315 _mesa_unsigned_to_signed(src[0], 16);
3319 _mesa_unsigned_to_signed(src[1], 16);
3323 _mesa_unsigned_to_signed(src[2], 16);
3332 pack_ubyte_rgb_sint32(const GLubyte src[4], void *dst)
3337 _mesa_unsigned_to_signed(src[0], 32);
3341 _mesa_unsigned_to_signed(src[1], 32);
3345 _mesa_unsigned_to_signed(src[2], 32);
3354 pack_ubyte_rgba_uint8(const GLubyte src[4], void *dst)
3359 _mesa_unsigned_to_unsigned(src[0], 8);
3363 _mesa_unsigned_to_unsigned(src[1], 8);
3367 _mesa_unsigned_to_unsigned(src[2], 8);
3371 _mesa_unsigned_to_unsigned(src[3], 8);
3381 pack_ubyte_rgba_uint16(const GLubyte src[4], void *dst)
3386 _mesa_unsigned_to_unsigned(src[0], 16);
3390 _mesa_unsigned_to_unsigned(src[1], 16);
3394 _mesa_unsigned_to_unsigned(src[2], 16);
3398 _mesa_unsigned_to_unsigned(src[3], 16);
3408 pack_ubyte_rgba_uint32(const GLubyte src[4], void *dst)
3413 _mesa_unsigned_to_unsigned(src[0], 32);
3417 _mesa_unsigned_to_unsigned(src[1], 32);
3421 _mesa_unsigned_to_unsigned(src[2], 32);
3425 _mesa_unsigned_to_unsigned(src[3], 32);
3435 pack_ubyte_rgba_sint8(const GLubyte src[4], void *dst)
3440 _mesa_unsigned_to_signed(src[0], 8);
3444 _mesa_unsigned_to_signed(src[1], 8);
3448 _mesa_unsigned_to_signed(src[2], 8);
3452 _mesa_unsigned_to_signed(src[3], 8);
3462 pack_ubyte_rgba_sint16(const GLubyte src[4], void *dst)
3467 _mesa_unsigned_to_signed(src[0], 16);
3471 _mesa_unsigned_to_signed(src[1], 16);
3475 _mesa_unsigned_to_signed(src[2], 16);
3479 _mesa_unsigned_to_signed(src[3], 16);
3489 pack_ubyte_rgba_sint32(const GLubyte src[4], void *dst)
3494 _mesa_unsigned_to_signed(src[0], 32);
3498 _mesa_unsigned_to_signed(src[1], 32);
3502 _mesa_unsigned_to_signed(src[2], 32);
3506 _mesa_unsigned_to_signed(src[3], 32);
3516 pack_ubyte_rgbx_uint8(const GLubyte src[4], void *dst)
3521 _mesa_unsigned_to_unsigned(src[0], 8);
3525 _mesa_unsigned_to_unsigned(src[1], 8);
3529 _mesa_unsigned_to_unsigned(src[2], 8);
3539 pack_ubyte_rgbx_uint16(const GLubyte src[4], void *dst)
3544 _mesa_unsigned_to_unsigned(src[0], 16);
3548 _mesa_unsigned_to_unsigned(src[1], 16);
3552 _mesa_unsigned_to_unsigned(src[2], 16);
3562 pack_ubyte_rgbx_uint32(const GLubyte src[4], void *dst)
3567 _mesa_unsigned_to_unsigned(src[0], 32);
3571 _mesa_unsigned_to_unsigned(src[1], 32);
3575 _mesa_unsigned_to_unsigned(src[2], 32);
3585 pack_ubyte_rgbx_sint8(const GLubyte src[4], void *dst)
3590 _mesa_unsigned_to_signed(src[0], 8);
3594 _mesa_unsigned_to_signed(src[1], 8);
3598 _mesa_unsigned_to_signed(src[2], 8);
3608 pack_ubyte_rgbx_sint16(const GLubyte src[4], void *dst)
3613 _mesa_unsigned_to_signed(src[0], 16);
3617 _mesa_unsigned_to_signed(src[1], 16);
3621 _mesa_unsigned_to_signed(src[2], 16);
3631 pack_ubyte_rgbx_sint32(const GLubyte src[4], void *dst)
3636 _mesa_unsigned_to_signed(src[0], 32);
3640 _mesa_unsigned_to_signed(src[1], 32);
3644 _mesa_unsigned_to_signed(src[2], 32);
3654 pack_ubyte_r9g9b9e5_float(const GLubyte src[4], void *dst)
3658 rgb[0] = _mesa_unorm_to_float(src[RCOMP], 8);
3659 rgb[1] = _mesa_unorm_to_float(src[GCOMP], 8);
3660 rgb[2] = _mesa_unorm_to_float(src[BCOMP], 8);
3665 pack_ubyte_r11g11b10_float(const GLubyte src[4], void *dst)
3669 rgb[0] = _mesa_unorm_to_float(src[RCOMP], 8);
3670 rgb[1] = _mesa_unorm_to_float(src[GCOMP], 8);
3671 rgb[2] = _mesa_unorm_to_float(src[BCOMP], 8);
3679 pack_uint_a8b8g8r8_uint(const GLuint src[4], void *dst)
3684 _mesa_unsigned_to_unsigned(src[3], 8);
3688 _mesa_unsigned_to_unsigned(src[2], 8);
3692 _mesa_unsigned_to_unsigned(src[1], 8);
3696 _mesa_unsigned_to_unsigned(src[0], 8);
3707 pack_uint_a8r8g8b8_uint(const GLuint src[4], void *dst)
3712 _mesa_unsigned_to_unsigned(src[3], 8);
3716 _mesa_unsigned_to_unsigned(src[0], 8);
3720 _mesa_unsigned_to_unsigned(src[1], 8);
3724 _mesa_unsigned_to_unsigned(src[2], 8);
3735 pack_uint_r8g8b8a8_uint(const GLuint src[4], void *dst)
3740 _mesa_unsigned_to_unsigned(src[0], 8);
3744 _mesa_unsigned_to_unsigned(src[1], 8);
3748 _mesa_unsigned_to_unsigned(src[2], 8);
3752 _mesa_unsigned_to_unsigned(src[3], 8);
3763 pack_uint_b8g8r8a8_uint(const GLuint src[4], void *dst)
3768 _mesa_unsigned_to_unsigned(src[2], 8);
3772 _mesa_unsigned_to_unsigned(src[1], 8);
3776 _mesa_unsigned_to_unsigned(src[0], 8);
3780 _mesa_unsigned_to_unsigned(src[3], 8);
3791 pack_uint_b10g10r10a2_uint(const GLuint src[4], void *dst)
3796 _mesa_unsigned_to_unsigned(src[2], 10);
3800 _mesa_unsigned_to_unsigned(src[1], 10);
3804 _mesa_unsigned_to_unsigned(src[0], 10);
3808 _mesa_unsigned_to_unsigned(src[3], 2);
3819 pack_uint_r10g10b10a2_uint(const GLuint src[4], void *dst)
3824 _mesa_unsigned_to_unsigned(src[0], 10);
3828 _mesa_unsigned_to_unsigned(src[1], 10);
3832 _mesa_unsigned_to_unsigned(src[2], 10);
3836 _mesa_unsigned_to_unsigned(src[3], 2);
3847 pack_uint_a2b10g10r10_uint(const GLuint src[4], void *dst)
3852 _mesa_unsigned_to_unsigned(src[3], 2);
3856 _mesa_unsigned_to_unsigned(src[2], 10);
3860 _mesa_unsigned_to_unsigned(src[1], 10);
3864 _mesa_unsigned_to_unsigned(src[0], 10);
3875 pack_uint_a2r10g10b10_uint(const GLuint src[4], void *dst)
3880 _mesa_unsigned_to_unsigned(src[3], 2);
3884 _mesa_unsigned_to_unsigned(src[0], 10);
3888 _mesa_unsigned_to_unsigned(src[1], 10);
3892 _mesa_unsigned_to_unsigned(src[2], 10);
3903 pack_uint_b5g6r5_uint(const GLuint src[4], void *dst)
3908 _mesa_unsigned_to_unsigned(src[2], 5);
3912 _mesa_unsigned_to_unsigned(src[1], 6);
3916 _mesa_unsigned_to_unsigned(src[0], 5);
3926 pack_uint_r5g6b5_uint(const GLuint src[4], void *dst)
3931 _mesa_unsigned_to_unsigned(src[0], 5);
3935 _mesa_unsigned_to_unsigned(src[1], 6);
3939 _mesa_unsigned_to_unsigned(src[2], 5);
3949 pack_uint_b2g3r3_uint(const GLuint src[4], void *dst)
3954 _mesa_unsigned_to_unsigned(src[2], 2);
3958 _mesa_unsigned_to_unsigned(src[1], 3);
3962 _mesa_unsigned_to_unsigned(src[0], 3);
3972 pack_uint_r3g3b2_uint(const GLuint src[4], void *dst)
3977 _mesa_unsigned_to_unsigned(src[0], 3);
3981 _mesa_unsigned_to_unsigned(src[1], 3);
3985 _mesa_unsigned_to_unsigned(src[2], 2);
3995 pack_uint_a4b4g4r4_uint(const GLuint src[4], void *dst)
4000 _mesa_unsigned_to_unsigned(src[3], 4);
4004 _mesa_unsigned_to_unsigned(src[2], 4);
4008 _mesa_unsigned_to_unsigned(src[1], 4);
4012 _mesa_unsigned_to_unsigned(src[0], 4);
4023 pack_uint_r4g4b4a4_uint(const GLuint src[4], void *dst)
4028 _mesa_unsigned_to_unsigned(src[0], 4);
4032 _mesa_unsigned_to_unsigned(src[1], 4);
4036 _mesa_unsigned_to_unsigned(src[2], 4);
4040 _mesa_unsigned_to_unsigned(src[3], 4);
4051 pack_uint_b4g4r4a4_uint(const GLuint src[4], void *dst)
4056 _mesa_unsigned_to_unsigned(src[2], 4);
4060 _mesa_unsigned_to_unsigned(src[1], 4);
4064 _mesa_unsigned_to_unsigned(src[0], 4);
4068 _mesa_unsigned_to_unsigned(src[3], 4);
4079 pack_uint_a4r4g4b4_uint(const GLuint src[4], void *dst)
4084 _mesa_unsigned_to_unsigned(src[3], 4);
4088 _mesa_unsigned_to_unsigned(src[0], 4);
4092 _mesa_unsigned_to_unsigned(src[1], 4);
4096 _mesa_unsigned_to_unsigned(src[2], 4);
4107 pack_uint_a1b5g5r5_uint(const GLuint src[4], void *dst)
4112 _mesa_unsigned_to_unsigned(src[3], 1);
4116 _mesa_unsigned_to_unsigned(src[2], 5);
4120 _mesa_unsigned_to_unsigned(src[1], 5);
4124 _mesa_unsigned_to_unsigned(src[0], 5);
4135 pack_uint_b5g5r5a1_uint(const GLuint src[4], void *dst)
4140 _mesa_unsigned_to_unsigned(src[2], 5);
4144 _mesa_unsigned_to_unsigned(src[1], 5);
4148 _mesa_unsigned_to_unsigned(src[0], 5);
4152 _mesa_unsigned_to_unsigned(src[3], 1);
4163 pack_uint_a1r5g5b5_uint(const GLuint src[4], void *dst)
4168 _mesa_unsigned_to_unsigned(src[3], 1);
4172 _mesa_unsigned_to_unsigned(src[0], 5);
4176 _mesa_unsigned_to_unsigned(src[1], 5);
4180 _mesa_unsigned_to_unsigned(src[2], 5);
4191 pack_uint_r5g5b5a1_uint(const GLuint src[4], void *dst)
4196 _mesa_unsigned_to_unsigned(src[0], 5);
4200 _mesa_unsigned_to_unsigned(src[1], 5);
4204 _mesa_unsigned_to_unsigned(src[2], 5);
4208 _mesa_unsigned_to_unsigned(src[3], 1);
4219 pack_uint_a_uint8(const GLuint src[4], void *dst)
4224 _mesa_unsigned_to_unsigned(src[3], 8);
4231 pack_uint_a_uint16(const GLuint src[4], void *dst)
4236 _mesa_unsigned_to_unsigned(src[3], 16);
4243 pack_uint_a_uint32(const GLuint src[4], void *dst)
4248 _mesa_unsigned_to_unsigned(src[3], 32);
4255 pack_uint_a_sint8(const GLuint src[4], void *dst)
4260 _mesa_signed_to_signed(src[3], 8);
4267 pack_uint_a_sint16(const GLuint src[4], void *dst)
4272 _mesa_signed_to_signed(src[3], 16);
4279 pack_uint_a_sint32(const GLuint src[4], void *dst)
4284 _mesa_signed_to_signed(src[3], 32);
4291 pack_uint_i_uint8(const GLuint src[4], void *dst)
4296 _mesa_unsigned_to_unsigned(src[0], 8);
4303 pack_uint_i_uint16(const GLuint src[4], void *dst)
4308 _mesa_unsigned_to_unsigned(src[0], 16);
4315 pack_uint_i_uint32(const GLuint src[4], void *dst)
4320 _mesa_unsigned_to_unsigned(src[0], 32);
4327 pack_uint_i_sint8(const GLuint src[4], void *dst)
4332 _mesa_signed_to_signed(src[0], 8);
4339 pack_uint_i_sint16(const GLuint src[4], void *dst)
4344 _mesa_signed_to_signed(src[0], 16);
4351 pack_uint_i_sint32(const GLuint src[4], void *dst)
4356 _mesa_signed_to_signed(src[0], 32);
4363 pack_uint_l_uint8(const GLuint src[4], void *dst)
4368 _mesa_unsigned_to_unsigned(src[0], 8);
4375 pack_uint_l_uint16(const GLuint src[4], void *dst)
4380 _mesa_unsigned_to_unsigned(src[0], 16);
4387 pack_uint_l_uint32(const GLuint src[4], void *dst)
4392 _mesa_unsigned_to_unsigned(src[0], 32);
4399 pack_uint_l_sint8(const GLuint src[4], void *dst)
4404 _mesa_signed_to_signed(src[0], 8);
4411 pack_uint_l_sint16(const GLuint src[4], void *dst)
4416 _mesa_signed_to_signed(src[0], 16);
4423 pack_uint_l_sint32(const GLuint src[4], void *dst)
4428 _mesa_signed_to_signed(src[0], 32);
4435 pack_uint_la_uint8(const GLuint src[4], void *dst)
4440 _mesa_unsigned_to_unsigned(src[0], 8);
4444 _mesa_unsigned_to_unsigned(src[3], 8);
4452 pack_uint_la_uint16(const GLuint src[4], void *dst)
4457 _mesa_unsigned_to_unsigned(src[0], 16);
4461 _mesa_unsigned_to_unsigned(src[3], 16);
4469 pack_uint_la_uint32(const GLuint src[4], void *dst)
4474 _mesa_unsigned_to_unsigned(src[0], 32);
4478 _mesa_unsigned_to_unsigned(src[3], 32);
4486 pack_uint_la_sint8(const GLuint src[4], void *dst)
4491 _mesa_signed_to_signed(src[0], 8);
4495 _mesa_signed_to_signed(src[3], 8);
4503 pack_uint_la_sint16(const GLuint src[4], void *dst)
4508 _mesa_signed_to_signed(src[0], 16);
4512 _mesa_signed_to_signed(src[3], 16);
4520 pack_uint_la_sint32(const GLuint src[4], void *dst)
4525 _mesa_signed_to_signed(src[0], 32);
4529 _mesa_signed_to_signed(src[3], 32);
4537 pack_uint_r_uint8(const GLuint src[4], void *dst)
4542 _mesa_unsigned_to_unsigned(src[0], 8);
4549 pack_uint_r_uint16(const GLuint src[4], void *dst)
4554 _mesa_unsigned_to_unsigned(src[0], 16);
4561 pack_uint_r_uint32(const GLuint src[4], void *dst)
4566 _mesa_unsigned_to_unsigned(src[0], 32);
4573 pack_uint_r_sint8(const GLuint src[4], void *dst)
4578 _mesa_signed_to_signed(src[0], 8);
4585 pack_uint_r_sint16(const GLuint src[4], void *dst)
4590 _mesa_signed_to_signed(src[0], 16);
4597 pack_uint_r_sint32(const GLuint src[4], void *dst)
4602 _mesa_signed_to_signed(src[0], 32);
4609 pack_uint_rg_uint8(const GLuint src[4], void *dst)
4614 _mesa_unsigned_to_unsigned(src[0], 8);
4618 _mesa_unsigned_to_unsigned(src[1], 8);
4626 pack_uint_rg_uint16(const GLuint src[4], void *dst)
4631 _mesa_unsigned_to_unsigned(src[0], 16);
4635 _mesa_unsigned_to_unsigned(src[1], 16);
4643 pack_uint_rg_uint32(const GLuint src[4], void *dst)
4648 _mesa_unsigned_to_unsigned(src[0], 32);
4652 _mesa_unsigned_to_unsigned(src[1], 32);
4660 pack_uint_rg_sint8(const GLuint src[4], void *dst)
4665 _mesa_signed_to_signed(src[0], 8);
4669 _mesa_signed_to_signed(src[1], 8);
4677 pack_uint_rg_sint16(const GLuint src[4], void *dst)
4682 _mesa_signed_to_signed(src[0], 16);
4686 _mesa_signed_to_signed(src[1], 16);
4694 pack_uint_rg_sint32(const GLuint src[4], void *dst)
4699 _mesa_signed_to_signed(src[0], 32);
4703 _mesa_signed_to_signed(src[1], 32);
4711 pack_uint_rgb_uint8(const GLuint src[4], void *dst)
4716 _mesa_unsigned_to_unsigned(src[0], 8);
4720 _mesa_unsigned_to_unsigned(src[1], 8);
4724 _mesa_unsigned_to_unsigned(src[2], 8);
4733 pack_uint_rgb_uint16(const GLuint src[4], void *dst)
4738 _mesa_unsigned_to_unsigned(src[0], 16);
4742 _mesa_unsigned_to_unsigned(src[1], 16);
4746 _mesa_unsigned_to_unsigned(src[2], 16);
4755 pack_uint_rgb_uint32(const GLuint src[4], void *dst)
4760 _mesa_unsigned_to_unsigned(src[0], 32);
4764 _mesa_unsigned_to_unsigned(src[1], 32);
4768 _mesa_unsigned_to_unsigned(src[2], 32);
4777 pack_uint_rgb_sint8(const GLuint src[4], void *dst)
4782 _mesa_signed_to_signed(src[0], 8);
4786 _mesa_signed_to_signed(src[1], 8);
4790 _mesa_signed_to_signed(src[2], 8);
4799 pack_uint_rgb_sint16(const GLuint src[4], void *dst)
4804 _mesa_signed_to_signed(src[0], 16);
4808 _mesa_signed_to_signed(src[1], 16);
4812 _mesa_signed_to_signed(src[2], 16);
4821 pack_uint_rgb_sint32(const GLuint src[4], void *dst)
4826 _mesa_signed_to_signed(src[0], 32);
4830 _mesa_signed_to_signed(src[1], 32);
4834 _mesa_signed_to_signed(src[2], 32);
4843 pack_uint_rgba_uint8(const GLuint src[4], void *dst)
4848 _mesa_unsigned_to_unsigned(src[0], 8);
4852 _mesa_unsigned_to_unsigned(src[1], 8);
4856 _mesa_unsigned_to_unsigned(src[2], 8);
4860 _mesa_unsigned_to_unsigned(src[3], 8);
4870 pack_uint_rgba_uint16(const GLuint src[4], void *dst)
4875 _mesa_unsigned_to_unsigned(src[0], 16);
4879 _mesa_unsigned_to_unsigned(src[1], 16);
4883 _mesa_unsigned_to_unsigned(src[2], 16);
4887 _mesa_unsigned_to_unsigned(src[3], 16);
4897 pack_uint_rgba_uint32(const GLuint src[4], void *dst)
4902 _mesa_unsigned_to_unsigned(src[0], 32);
4906 _mesa_unsigned_to_unsigned(src[1], 32);
4910 _mesa_unsigned_to_unsigned(src[2], 32);
4914 _mesa_unsigned_to_unsigned(src[3], 32);
4924 pack_uint_rgba_sint8(const GLuint src[4], void *dst)
4929 _mesa_signed_to_signed(src[0], 8);
4933 _mesa_signed_to_signed(src[1], 8);
4937 _mesa_signed_to_signed(src[2], 8);
4941 _mesa_signed_to_signed(src[3], 8);
4951 pack_uint_rgba_sint16(const GLuint src[4], void *dst)
4956 _mesa_signed_to_signed(src[0], 16);
4960 _mesa_signed_to_signed(src[1], 16);
4964 _mesa_signed_to_signed(src[2], 16);
4968 _mesa_signed_to_signed(src[3], 16);
4978 pack_uint_rgba_sint32(const GLuint src[4], void *dst)
4983 _mesa_signed_to_signed(src[0], 32);
4987 _mesa_signed_to_signed(src[1], 32);
4991 _mesa_signed_to_signed(src[2], 32);
4995 _mesa_signed_to_signed(src[3], 32);
5005 pack_uint_rgbx_uint8(const GLuint src[4], void *dst)
5010 _mesa_unsigned_to_unsigned(src[0], 8);
5014 _mesa_unsigned_to_unsigned(src[1], 8);
5018 _mesa_unsigned_to_unsigned(src[2], 8);
5028 pack_uint_rgbx_uint16(const GLuint src[4], void *dst)
5033 _mesa_unsigned_to_unsigned(src[0], 16);
5037 _mesa_unsigned_to_unsigned(src[1], 16);
5041 _mesa_unsigned_to_unsigned(src[2], 16);
5051 pack_uint_rgbx_uint32(const GLuint src[4], void *dst)
5056 _mesa_unsigned_to_unsigned(src[0], 32);
5060 _mesa_unsigned_to_unsigned(src[1], 32);
5064 _mesa_unsigned_to_unsigned(src[2], 32);
5074 pack_uint_rgbx_sint8(const GLuint src[4], void *dst)
5079 _mesa_signed_to_signed(src[0], 8);
5083 _mesa_signed_to_signed(src[1], 8);
5087 _mesa_signed_to_signed(src[2], 8);
5097 pack_uint_rgbx_sint16(const GLuint src[4], void *dst)
5102 _mesa_signed_to_signed(src[0], 16);
5106 _mesa_signed_to_signed(src[1], 16);
5110 _mesa_signed_to_signed(src[2], 16);
5120 pack_uint_rgbx_sint32(const GLuint src[4], void *dst)
5125 _mesa_signed_to_signed(src[0], 32);
5129 _mesa_signed_to_signed(src[1], 32);
5133 _mesa_signed_to_signed(src[2], 32);
5146 pack_float_a8b8g8r8_unorm(const GLfloat src[4], void *dst)
5151 _mesa_float_to_unorm(src[3], 8);
5155 _mesa_float_to_unorm(src[2], 8);
5159 _mesa_float_to_unorm(src[1], 8);
5163 _mesa_float_to_unorm(src[0], 8);
5174 pack_float_x8b8g8r8_unorm(const GLfloat src[4], void *dst)
5180 _mesa_float_to_unorm(src[2], 8);
5184 _mesa_float_to_unorm(src[1], 8);
5188 _mesa_float_to_unorm(src[0], 8);
5198 pack_float_r8g8b8a8_unorm(const GLfloat src[4], void *dst)
5203 _mesa_float_to_unorm(src[0], 8);
5207 _mesa_float_to_unorm(src[1], 8);
5211 _mesa_float_to_unorm(src[2], 8);
5215 _mesa_float_to_unorm(src[3], 8);
5226 pack_float_r8g8b8x8_unorm(const GLfloat src[4], void *dst)
5231 _mesa_float_to_unorm(src[0], 8);
5235 _mesa_float_to_unorm(src[1], 8);
5239 _mesa_float_to_unorm(src[2], 8);
5250 pack_float_b8g8r8a8_unorm(const GLfloat src[4], void *dst)
5255 _mesa_float_to_unorm(src[2], 8);
5259 _mesa_float_to_unorm(src[1], 8);
5263 _mesa_float_to_unorm(src[0], 8);
5267 _mesa_float_to_unorm(src[3], 8);
5278 pack_float_b8g8r8x8_unorm(const GLfloat src[4], void *dst)
5283 _mesa_float_to_unorm(src[2], 8);
5287 _mesa_float_to_unorm(src[1], 8);
5291 _mesa_float_to_unorm(src[0], 8);
5302 pack_float_a8r8g8b8_unorm(const GLfloat src[4], void *dst)
5307 _mesa_float_to_unorm(src[3], 8);
5311 _mesa_float_to_unorm(src[0], 8);
5315 _mesa_float_to_unorm(src[1], 8);
5319 _mesa_float_to_unorm(src[2], 8);
5330 pack_float_x8r8g8b8_unorm(const GLfloat src[4], void *dst)
5336 _mesa_float_to_unorm(src[0], 8);
5340 _mesa_float_to_unorm(src[1], 8);
5344 _mesa_float_to_unorm(src[2], 8);
5354 pack_float_l16a16_unorm(const GLfloat src[4], void *dst)
5359 _mesa_float_to_unorm(src[0], 16);
5363 _mesa_float_to_unorm(src[3], 16);
5372 pack_float_a16l16_unorm(const GLfloat src[4], void *dst)
5377 _mesa_float_to_unorm(src[3], 16);
5381 _mesa_float_to_unorm(src[0], 16);
5390 pack_float_b5g6r5_unorm(const GLfloat src[4], void *dst)
5395 _mesa_float_to_unorm(src[2], 5);
5399 _mesa_float_to_unorm(src[1], 6);
5403 _mesa_float_to_unorm(src[0], 5);
5413 pack_float_r5g6b5_unorm(const GLfloat src[4], void *dst)
5418 _mesa_float_to_unorm(src[0], 5);
5422 _mesa_float_to_unorm(src[1], 6);
5426 _mesa_float_to_unorm(src[2], 5);
5436 pack_float_b4g4r4a4_unorm(const GLfloat src[4], void *dst)
5441 _mesa_float_to_unorm(src[2], 4);
5445 _mesa_float_to_unorm(src[1], 4);
5449 _mesa_float_to_unorm(src[0], 4);
5453 _mesa_float_to_unorm(src[3], 4);
5464 pack_float_b4g4r4x4_unorm(const GLfloat src[4], void *dst)
5469 _mesa_float_to_unorm(src[2], 4);
5473 _mesa_float_to_unorm(src[1], 4);
5477 _mesa_float_to_unorm(src[0], 4);
5488 pack_float_a4r4g4b4_unorm(const GLfloat src[4], void *dst)
5493 _mesa_float_to_unorm(src[3], 4);
5497 _mesa_float_to_unorm(src[0], 4);
5501 _mesa_float_to_unorm(src[1], 4);
5505 _mesa_float_to_unorm(src[2], 4);
5516 pack_float_a1b5g5r5_unorm(const GLfloat src[4], void *dst)
5521 _mesa_float_to_unorm(src[3], 1);
5525 _mesa_float_to_unorm(src[2], 5);
5529 _mesa_float_to_unorm(src[1], 5);
5533 _mesa_float_to_unorm(src[0], 5);
5544 pack_float_x1b5g5r5_unorm(const GLfloat src[4], void *dst)
5550 _mesa_float_to_unorm(src[2], 5);
5554 _mesa_float_to_unorm(src[1], 5);
5558 _mesa_float_to_unorm(src[0], 5);
5568 pack_float_b5g5r5a1_unorm(const GLfloat src[4], void *dst)
5573 _mesa_float_to_unorm(src[2], 5);
5577 _mesa_float_to_unorm(src[1], 5);
5581 _mesa_float_to_unorm(src[0], 5);
5585 _mesa_float_to_unorm(src[3], 1);
5596 pack_float_b5g5r5x1_unorm(const GLfloat src[4], void *dst)
5601 _mesa_float_to_unorm(src[2], 5);
5605 _mesa_float_to_unorm(src[1], 5);
5609 _mesa_float_to_unorm(src[0], 5);
5620 pack_float_a1r5g5b5_unorm(const GLfloat src[4], void *dst)
5625 _mesa_float_to_unorm(src[3], 1);
5629 _mesa_float_to_unorm(src[0], 5);
5633 _mesa_float_to_unorm(src[1], 5);
5637 _mesa_float_to_unorm(src[2], 5);
5648 pack_float_l8a8_unorm(const GLfloat src[4], void *dst)
5653 _mesa_float_to_unorm(src[0], 8);
5657 _mesa_float_to_unorm(src[3], 8);
5666 pack_float_a8l8_unorm(const GLfloat src[4], void *dst)
5671 _mesa_float_to_unorm(src[3], 8);
5675 _mesa_float_to_unorm(src[0], 8);
5684 pack_float_r8g8_unorm(const GLfloat src[4], void *dst)
5689 _mesa_float_to_unorm(src[0], 8);
5693 _mesa_float_to_unorm(src[1], 8);
5702 pack_float_g8r8_unorm(const GLfloat src[4], void *dst)
5707 _mesa_float_to_unorm(src[1], 8);
5711 _mesa_float_to_unorm(src[0], 8);
5720 pack_float_l4a4_unorm(const GLfloat src[4], void *dst)
5725 _mesa_float_to_unorm(src[0], 4);
5729 _mesa_float_to_unorm(src[3], 4);
5738 pack_float_b2g3r3_unorm(const GLfloat src[4], void *dst)
5743 _mesa_float_to_unorm(src[2], 2);
5747 _mesa_float_to_unorm(src[1], 3);
5751 _mesa_float_to_unorm(src[0], 3);
5761 pack_float_r16g16_unorm(const GLfloat src[4], void *dst)
5766 _mesa_float_to_unorm(src[0], 16);
5770 _mesa_float_to_unorm(src[1], 16);
5779 pack_float_g16r16_unorm(const GLfloat src[4], void *dst)
5784 _mesa_float_to_unorm(src[1], 16);
5788 _mesa_float_to_unorm(src[0], 16);
5797 pack_float_b10g10r10a2_unorm(const GLfloat src[4], void *dst)
5802 _mesa_float_to_unorm(src[2], 10);
5806 _mesa_float_to_unorm(src[1], 10);
5810 _mesa_float_to_unorm(src[0], 10);
5814 _mesa_float_to_unorm(src[3], 2);
5825 pack_float_b10g10r10x2_unorm(const GLfloat src[4], void *dst)
5830 _mesa_float_to_unorm(src[2], 10);
5834 _mesa_float_to_unorm(src[1], 10);
5838 _mesa_float_to_unorm(src[0], 10);
5849 pack_float_r10g10b10a2_unorm(const GLfloat src[4], void *dst)
5854 _mesa_float_to_unorm(src[0], 10);
5858 _mesa_float_to_unorm(src[1], 10);
5862 _mesa_float_to_unorm(src[2], 10);
5866 _mesa_float_to_unorm(src[3], 2);
5877 pack_float_r10g10b10x2_unorm(const GLfloat src[4], void *dst)
5882 _mesa_float_to_unorm(src[0], 10);
5886 _mesa_float_to_unorm(src[1], 10);
5890 _mesa_float_to_unorm(src[2], 10);
5901 pack_float_r3g3b2_unorm(const GLfloat src[4], void *dst)
5906 _mesa_float_to_unorm(src[0], 3);
5910 _mesa_float_to_unorm(src[1], 3);
5914 _mesa_float_to_unorm(src[2], 2);
5924 pack_float_a4b4g4r4_unorm(const GLfloat src[4], void *dst)
5929 _mesa_float_to_unorm(src[3], 4);
5933 _mesa_float_to_unorm(src[2], 4);
5937 _mesa_float_to_unorm(src[1], 4);
5941 _mesa_float_to_unorm(src[0], 4);
5952 pack_float_r4g4b4a4_unorm(const GLfloat src[4], void *dst)
5957 _mesa_float_to_unorm(src[0], 4);
5961 _mesa_float_to_unorm(src[1], 4);
5965 _mesa_float_to_unorm(src[2], 4);
5969 _mesa_float_to_unorm(src[3], 4);
5980 pack_float_r5g5b5a1_unorm(const GLfloat src[4], void *dst)
5985 _mesa_float_to_unorm(src[0], 5);
5989 _mesa_float_to_unorm(src[1], 5);
5993 _mesa_float_to_unorm(src[2], 5);
5997 _mesa_float_to_unorm(src[3], 1);
6008 pack_float_a2b10g10r10_unorm(const GLfloat src[4], void *dst)
6013 _mesa_float_to_unorm(src[3], 2);
6017 _mesa_float_to_unorm(src[2], 10);
6021 _mesa_float_to_unorm(src[1], 10);
6025 _mesa_float_to_unorm(src[0], 10);
6036 pack_float_a2r10g10b10_unorm(const GLfloat src[4], void *dst)
6041 _mesa_float_to_unorm(src[3], 2);
6045 _mesa_float_to_unorm(src[0], 10);
6049 _mesa_float_to_unorm(src[1], 10);
6053 _mesa_float_to_unorm(src[2], 10);
6064 pack_float_a_unorm8(const GLfloat src[4], void *dst)
6069 _mesa_float_to_unorm(src[3], 8);
6076 pack_float_a_unorm16(const GLfloat src[4], void *dst)
6081 _mesa_float_to_unorm(src[3], 16);
6088 pack_float_l_unorm8(const GLfloat src[4], void *dst)
6093 _mesa_float_to_unorm(src[0], 8);
6100 pack_float_l_unorm16(const GLfloat src[4], void *dst)
6105 _mesa_float_to_unorm(src[0], 16);
6112 pack_float_i_unorm8(const GLfloat src[4], void *dst)
6117 _mesa_float_to_unorm(src[0], 8);
6124 pack_float_i_unorm16(const GLfloat src[4], void *dst)
6129 _mesa_float_to_unorm(src[0], 16);
6136 pack_float_r_unorm8(const GLfloat src[4], void *dst)
6141 _mesa_float_to_unorm(src[0], 8);
6148 pack_float_r_unorm16(const GLfloat src[4], void *dst)
6153 _mesa_float_to_unorm(src[0], 16);
6160 pack_float_bgr_unorm8(const GLfloat src[4], void *dst)
6165 _mesa_float_to_unorm(src[2], 8);
6169 _mesa_float_to_unorm(src[1], 8);
6173 _mesa_float_to_unorm(src[0], 8);
6182 pack_float_rgb_unorm8(const GLfloat src[4], void *dst)
6187 _mesa_float_to_unorm(src[0], 8);
6191 _mesa_float_to_unorm(src[1], 8);
6195 _mesa_float_to_unorm(src[2], 8);
6204 pack_float_rgba_unorm16(const GLfloat src[4], void *dst)
6209 _mesa_float_to_unorm(src[0], 16);
6213 _mesa_float_to_unorm(src[1], 16);
6217 _mesa_float_to_unorm(src[2], 16);
6221 _mesa_float_to_unorm(src[3], 16);
6231 pack_float_rgbx_unorm16(const GLfloat src[4], void *dst)
6236 _mesa_float_to_unorm(src[0], 16);
6240 _mesa_float_to_unorm(src[1], 16);
6244 _mesa_float_to_unorm(src[2], 16);
6254 pack_float_a8b8g8r8_snorm(const GLfloat src[4], void *dst)
6259 _mesa_float_to_snorm(src[3], 8);
6263 _mesa_float_to_snorm(src[2], 8);
6267 _mesa_float_to_snorm(src[1], 8);
6271 _mesa_float_to_snorm(src[0], 8);
6282 pack_float_x8b8g8r8_snorm(const GLfloat src[4], void *dst)
6288 _mesa_float_to_snorm(src[2], 8);
6292 _mesa_float_to_snorm(src[1], 8);
6296 _mesa_float_to_snorm(src[0], 8);
6306 pack_float_r8g8b8a8_snorm(const GLfloat src[4], void *dst)
6311 _mesa_float_to_snorm(src[0], 8);
6315 _mesa_float_to_snorm(src[1], 8);
6319 _mesa_float_to_snorm(src[2], 8);
6323 _mesa_float_to_snorm(src[3], 8);
6334 pack_float_r8g8b8x8_snorm(const GLfloat src[4], void *dst)
6339 _mesa_float_to_snorm(src[0], 8);
6343 _mesa_float_to_snorm(src[1], 8);
6347 _mesa_float_to_snorm(src[2], 8);
6358 pack_float_r16g16_snorm(const GLfloat src[4], void *dst)
6363 _mesa_float_to_snorm(src[0], 16);
6367 _mesa_float_to_snorm(src[1], 16);
6376 pack_float_g16r16_snorm(const GLfloat src[4], void *dst)
6381 _mesa_float_to_snorm(src[1], 16);
6385 _mesa_float_to_snorm(src[0], 16);
6394 pack_float_r8g8_snorm(const GLfloat src[4], void *dst)
6399 _mesa_float_to_snorm(src[0], 8);
6403 _mesa_float_to_snorm(src[1], 8);
6412 pack_float_g8r8_snorm(const GLfloat src[4], void *dst)
6417 _mesa_float_to_snorm(src[1], 8);
6421 _mesa_float_to_snorm(src[0], 8);
6430 pack_float_l8a8_snorm(const GLfloat src[4], void *dst)
6435 _mesa_float_to_snorm(src[0], 8);
6439 _mesa_float_to_snorm(src[3], 8);
6448 pack_float_a8l8_snorm(const GLfloat src[4], void *dst)
6453 _mesa_float_to_snorm(src[3], 8);
6457 _mesa_float_to_snorm(src[0], 8);
6466 pack_float_a_snorm8(const GLfloat src[4], void *dst)
6471 _mesa_float_to_snorm(src[3], 8);
6478 pack_float_a_snorm16(const GLfloat src[4], void *dst)
6483 _mesa_float_to_snorm(src[3], 16);
6490 pack_float_l_snorm8(const GLfloat src[4], void *dst)
6495 _mesa_float_to_snorm(src[0], 8);
6502 pack_float_l_snorm16(const GLfloat src[4], void *dst)
6507 _mesa_float_to_snorm(src[0], 16);
6514 pack_float_i_snorm8(const GLfloat src[4], void *dst)
6519 _mesa_float_to_snorm(src[0], 8);
6526 pack_float_i_snorm16(const GLfloat src[4], void *dst)
6531 _mesa_float_to_snorm(src[0], 16);
6538 pack_float_r_snorm8(const GLfloat src[4], void *dst)
6543 _mesa_float_to_snorm(src[0], 8);
6550 pack_float_r_snorm16(const GLfloat src[4], void *dst)
6555 _mesa_float_to_snorm(src[0], 16);
6562 pack_float_la_snorm16(const GLfloat src[4], void *dst)
6567 _mesa_float_to_snorm(src[0], 16);
6571 _mesa_float_to_snorm(src[3], 16);
6579 pack_float_rgb_snorm16(const GLfloat src[4], void *dst)
6584 _mesa_float_to_snorm(src[0], 16);
6588 _mesa_float_to_snorm(src[1], 16);
6592 _mesa_float_to_snorm(src[2], 16);
6601 pack_float_rgba_snorm16(const GLfloat src[4], void *dst)
6606 _mesa_float_to_snorm(src[0], 16);
6610 _mesa_float_to_snorm(src[1], 16);
6614 _mesa_float_to_snorm(src[2], 16);
6618 _mesa_float_to_snorm(src[3], 16);
6628 pack_float_rgbx_snorm16(const GLfloat src[4], void *dst)
6633 _mesa_float_to_snorm(src[0], 16);
6637 _mesa_float_to_snorm(src[1], 16);
6641 _mesa_float_to_snorm(src[2], 16);
6651 pack_float_a8b8g8r8_srgb(const GLfloat src[4], void *dst)
6656 _mesa_float_to_unorm(src[3], 8);
6661 util_format_linear_float_to_srgb_8unorm(src[2]);
6666 util_format_linear_float_to_srgb_8unorm(src[1]);
6671 util_format_linear_float_to_srgb_8unorm(src[0]);
6682 pack_float_b8g8r8a8_srgb(const GLfloat src[4], void *dst)
6688 util_format_linear_float_to_srgb_8unorm(src[2]);
6693 util_format_linear_float_to_srgb_8unorm(src[1]);
6698 util_format_linear_float_to_srgb_8unorm(src[0]);
6702 _mesa_float_to_unorm(src[3], 8);
6713 pack_float_a8r8g8b8_srgb(const GLfloat src[4], void *dst)
6718 _mesa_float_to_unorm(src[3], 8);
6723 util_format_linear_float_to_srgb_8unorm(src[0]);
6728 util_format_linear_float_to_srgb_8unorm(src[1]);
6733 util_format_linear_float_to_srgb_8unorm(src[2]);
6744 pack_float_b8g8r8x8_srgb(const GLfloat src[4], void *dst)
6750 util_format_linear_float_to_srgb_8unorm(src[2]);
6755 util_format_linear_float_to_srgb_8unorm(src[1]);
6760 util_format_linear_float_to_srgb_8unorm(src[0]);
6771 pack_float_x8r8g8b8_srgb(const GLfloat src[4], void *dst)
6778 util_format_linear_float_to_srgb_8unorm(src[0]);
6783 util_format_linear_float_to_srgb_8unorm(src[1]);
6788 util_format_linear_float_to_srgb_8unorm(src[2]);
6798 pack_float_r8g8b8a8_srgb(const GLfloat src[4], void *dst)
6804 util_format_linear_float_to_srgb_8unorm(src[0]);
6809 util_format_linear_float_to_srgb_8unorm(src[1]);
6814 util_format_linear_float_to_srgb_8unorm(src[2]);
6818 _mesa_float_to_unorm(src[3], 8);
6829 pack_float_r8g8b8x8_srgb(const GLfloat src[4], void *dst)
6835 util_format_linear_float_to_srgb_8unorm(src[0]);
6840 util_format_linear_float_to_srgb_8unorm(src[1]);
6845 util_format_linear_float_to_srgb_8unorm(src[2]);
6856 pack_float_x8b8g8r8_srgb(const GLfloat src[4], void *dst)
6863 util_format_linear_float_to_srgb_8unorm(src[2]);
6868 util_format_linear_float_to_srgb_8unorm(src[1]);
6873 util_format_linear_float_to_srgb_8unorm(src[0]);
6883 pack_float_l8a8_srgb(const GLfloat src[4], void *dst)
6888 _mesa_float_to_unorm(src[0], 8);
6892 _mesa_float_to_unorm(src[3], 8);
6901 pack_float_a8l8_srgb(const GLfloat src[4], void *dst)
6906 _mesa_float_to_unorm(src[3], 8);
6910 _mesa_float_to_unorm(src[0], 8);
6919 pack_float_r_srgb8(const GLfloat src[4], void *dst)
6925 util_format_linear_float_to_srgb_8unorm(src[0]);
6932 pack_float_l_srgb8(const GLfloat src[4], void *dst)
6937 _mesa_float_to_unorm(src[0], 8);
6944 pack_float_bgr_srgb8(const GLfloat src[4], void *dst)
6950 util_format_linear_float_to_srgb_8unorm(src[2]);
6955 util_format_linear_float_to_srgb_8unorm(src[1]);
6960 util_format_linear_float_to_srgb_8unorm(src[0]);
6969 pack_float_a_float16(const GLfloat src[4], void *dst)
6974 _mesa_float_to_half(src[3]);
6981 pack_float_a_float32(const GLfloat src[4], void *dst)
6986 src[3];
6993 pack_float_l_float16(const GLfloat src[4], void *dst)
6998 _mesa_float_to_half(src[0]);
7005 pack_float_l_float32(const GLfloat src[4], void *dst)
7010 src[0];
7017 pack_float_la_float16(const GLfloat src[4], void *dst)
7022 _mesa_float_to_half(src[0]);
7026 _mesa_float_to_half(src[3]);
7034 pack_float_la_float32(const GLfloat src[4], void *dst)
7039 src[0];
7043 src[3];
7051 pack_float_i_float16(const GLfloat src[4], void *dst)
7056 _mesa_float_to_half(src[0]);
7063 pack_float_i_float32(const GLfloat src[4], void *dst)
7068 src[0];
7075 pack_float_r_float16(const GLfloat src[4], void *dst)
7080 _mesa_float_to_half(src[0]);
7087 pack_float_r_float32(const GLfloat src[4], void *dst)
7092 src[0];
7099 pack_float_rg_float16(const GLfloat src[4], void *dst)
7104 _mesa_float_to_half(src[0]);
7108 _mesa_float_to_half(src[1]);
7116 pack_float_rg_float32(const GLfloat src[4], void *dst)
7121 src[0];
7125 src[1];
7133 pack_float_rgb_float16(const GLfloat src[4], void *dst)
7138 _mesa_float_to_half(src[0]);
7142 _mesa_float_to_half(src[1]);
7146 _mesa_float_to_half(src[2]);
7155 pack_float_rgb_float32(const GLfloat src[4], void *dst)
7160 src[0];
7164 src[1];
7168 src[2];
7177 pack_float_rgba_float16(const GLfloat src[4], void *dst)
7182 _mesa_float_to_half(src[0]);
7186 _mesa_float_to_half(src[1]);
7190 _mesa_float_to_half(src[2]);
7194 _mesa_float_to_half(src[3]);
7204 pack_float_rgba_float32(const GLfloat src[4], void *dst)
7209 src[0];
7213 src[1];
7217 src[2];
7221 src[3];
7231 pack_float_rgbx_float16(const GLfloat src[4], void *dst)
7236 _mesa_float_to_half(src[0]);
7240 _mesa_float_to_half(src[1]);
7244 _mesa_float_to_half(src[2]);
7254 pack_float_rgbx_float32(const GLfloat src[4], void *dst)
7259 src[0];
7263 src[1];
7267 src[2];
7277 pack_float_r9g9b9e5_float(const GLfloat src[4], void *dst)
7280 *d = float3_to_rgb9e5(src);
7284 pack_float_r11g11b10_float(const GLfloat src[4], void *dst)
7287 *d = float3_to_r11g11b10f(src);
8171 const GLubyte src[][4], void *dst)
8180 pack_ubyte_a8b8g8r8_unorm(src[i], d);
8187 pack_ubyte_x8b8g8r8_unorm(src[i], d);
8194 pack_ubyte_r8g8b8a8_unorm(src[i], d);
8201 pack_ubyte_r8g8b8x8_unorm(src[i], d);
8208 pack_ubyte_b8g8r8a8_unorm(src[i], d);
8215 pack_ubyte_b8g8r8x8_unorm(src[i], d);
8222 pack_ubyte_a8r8g8b8_unorm(src[i], d);
8229 pack_ubyte_x8r8g8b8_unorm(src[i], d);
8236 pack_ubyte_l16a16_unorm(src[i], d);
8243 pack_ubyte_a16l16_unorm(src[i], d);
8250 pack_ubyte_b5g6r5_unorm(src[i], d);
8257 pack_ubyte_r5g6b5_unorm(src[i], d);
8264 pack_ubyte_b4g4r4a4_unorm(src[i], d);
8271 pack_ubyte_b4g4r4x4_unorm(src[i], d);
8278 pack_ubyte_a4r4g4b4_unorm(src[i], d);
8285 pack_ubyte_a1b5g5r5_unorm(src[i], d);
8292 pack_ubyte_x1b5g5r5_unorm(src[i], d);
8299 pack_ubyte_b5g5r5a1_unorm(src[i], d);
8306 pack_ubyte_b5g5r5x1_unorm(src[i], d);
8313 pack_ubyte_a1r5g5b5_unorm(src[i], d);
8320 pack_ubyte_l8a8_unorm(src[i], d);
8327 pack_ubyte_a8l8_unorm(src[i], d);
8334 pack_ubyte_r8g8_unorm(src[i], d);
8341 pack_ubyte_g8r8_unorm(src[i], d);
8348 pack_ubyte_l4a4_unorm(src[i], d);
8355 pack_ubyte_b2g3r3_unorm(src[i], d);
8362 pack_ubyte_r16g16_unorm(src[i], d);
8369 pack_ubyte_g16r16_unorm(src[i], d);
8376 pack_ubyte_b10g10r10a2_unorm(src[i], d);
8383 pack_ubyte_b10g10r10x2_unorm(src[i], d);
8390 pack_ubyte_r10g10b10a2_unorm(src[i], d);
8397 pack_ubyte_r10g10b10x2_unorm(src[i], d);
8404 pack_ubyte_r3g3b2_unorm(src[i], d);
8411 pack_ubyte_a4b4g4r4_unorm(src[i], d);
8418 pack_ubyte_r4g4b4a4_unorm(src[i], d);
8425 pack_ubyte_r5g5b5a1_unorm(src[i], d);
8432 pack_ubyte_a2b10g10r10_unorm(src[i], d);
8439 pack_ubyte_a2r10g10b10_unorm(src[i], d);
8446 pack_ubyte_a_unorm8(src[i], d);
8453 pack_ubyte_a_unorm16(src[i], d);
8460 pack_ubyte_l_unorm8(src[i], d);
8467 pack_ubyte_l_unorm16(src[i], d);
8474 pack_ubyte_i_unorm8(src[i], d);
8481 pack_ubyte_i_unorm16(src[i], d);
8488 pack_ubyte_r_unorm8(src[i], d);
8495 pack_ubyte_r_unorm16(src[i], d);
8502 pack_ubyte_bgr_unorm8(src[i], d);
8509 pack_ubyte_rgb_unorm8(src[i], d);
8516 pack_ubyte_rgba_unorm16(src[i], d);
8523 pack_ubyte_rgbx_unorm16(src[i], d);
8530 pack_ubyte_a8b8g8r8_snorm(src[i], d);
8537 pack_ubyte_x8b8g8r8_snorm(src[i], d);
8544 pack_ubyte_r8g8b8a8_snorm(src[i], d);
8551 pack_ubyte_r8g8b8x8_snorm(src[i], d);
8558 pack_ubyte_r16g16_snorm(src[i], d);
8565 pack_ubyte_g16r16_snorm(src[i], d);
8572 pack_ubyte_r8g8_snorm(src[i], d);
8579 pack_ubyte_g8r8_snorm(src[i], d);
8586 pack_ubyte_l8a8_snorm(src[i], d);
8593 pack_ubyte_a8l8_snorm(src[i], d);
8600 pack_ubyte_a_snorm8(src[i], d);
8607 pack_ubyte_a_snorm16(src[i], d);
8614 pack_ubyte_l_snorm8(src[i], d);
8621 pack_ubyte_l_snorm16(src[i], d);
8628 pack_ubyte_i_snorm8(src[i], d);
8635 pack_ubyte_i_snorm16(src[i], d);
8642 pack_ubyte_r_snorm8(src[i], d);
8649 pack_ubyte_r_snorm16(src[i], d);
8656 pack_ubyte_la_snorm16(src[i], d);
8663 pack_ubyte_rgb_snorm16(src[i], d);
8670 pack_ubyte_rgba_snorm16(src[i], d);
8677 pack_ubyte_rgbx_snorm16(src[i], d);
8684 pack_ubyte_a8b8g8r8_srgb(src[i], d);
8691 pack_ubyte_b8g8r8a8_srgb(src[i], d);
8698 pack_ubyte_a8r8g8b8_srgb(src[i], d);
8705 pack_ubyte_b8g8r8x8_srgb(src[i], d);
8712 pack_ubyte_x8r8g8b8_srgb(src[i], d);
8719 pack_ubyte_r8g8b8a8_srgb(src[i], d);
8726 pack_ubyte_r8g8b8x8_srgb(src[i], d);
8733 pack_ubyte_x8b8g8r8_srgb(src[i], d);
8740 pack_ubyte_l8a8_srgb(src[i], d);
8747 pack_ubyte_a8l8_srgb(src[i], d);
8754 pack_ubyte_r_srgb8(src[i], d);
8761 pack_ubyte_l_srgb8(src[i], d);
8768 pack_ubyte_bgr_srgb8(src[i], d);
8775 pack_ubyte_r9g9b9e5_float(src[i], d);
8782 pack_ubyte_r11g11b10_float(src[i], d);
8789 pack_ubyte_a_float16(src[i], d);
8796 pack_ubyte_a_float32(src[i], d);
8803 pack_ubyte_l_float16(src[i], d);
8810 pack_ubyte_l_float32(src[i], d);
8817 pack_ubyte_la_float16(src[i], d);
8824 pack_ubyte_la_float32(src[i], d);
8831 pack_ubyte_i_float16(src[i], d);
8838 pack_ubyte_i_float32(src[i], d);
8845 pack_ubyte_r_float16(src[i], d);
8852 pack_ubyte_r_float32(src[i], d);
8859 pack_ubyte_rg_float16(src[i], d);
8866 pack_ubyte_rg_float32(src[i], d);
8873 pack_ubyte_rgb_float16(src[i], d);
8880 pack_ubyte_rgb_float32(src[i], d);
8887 pack_ubyte_rgba_float16(src[i], d);
8894 pack_ubyte_rgba_float32(src[i], d);
8901 pack_ubyte_rgbx_float16(src[i], d);
8908 pack_ubyte_rgbx_float32(src[i], d);
8915 pack_ubyte_a8b8g8r8_uint(src[i], d);
8922 pack_ubyte_a8r8g8b8_uint(src[i], d);
8929 pack_ubyte_r8g8b8a8_uint(src[i], d);
8936 pack_ubyte_b8g8r8a8_uint(src[i], d);
8943 pack_ubyte_b10g10r10a2_uint(src[i], d);
8950 pack_ubyte_r10g10b10a2_uint(src[i], d);
8957 pack_ubyte_a2b10g10r10_uint(src[i], d);
8964 pack_ubyte_a2r10g10b10_uint(src[i], d);
8971 pack_ubyte_b5g6r5_uint(src[i], d);
8978 pack_ubyte_r5g6b5_uint(src[i], d);
8985 pack_ubyte_b2g3r3_uint(src[i], d);
8992 pack_ubyte_r3g3b2_uint(src[i], d);
8999 pack_ubyte_a4b4g4r4_uint(src[i], d);
9006 pack_ubyte_r4g4b4a4_uint(src[i], d);
9013 pack_ubyte_b4g4r4a4_uint(src[i], d);
9020 pack_ubyte_a4r4g4b4_uint(src[i], d);
9027 pack_ubyte_a1b5g5r5_uint(src[i], d);
9034 pack_ubyte_b5g5r5a1_uint(src[i], d);
9041 pack_ubyte_a1r5g5b5_uint(src[i], d);
9048 pack_ubyte_r5g5b5a1_uint(src[i], d);
9055 pack_ubyte_a_uint8(src[i], d);
9062 pack_ubyte_a_uint16(src[i], d);
9069 pack_ubyte_a_uint32(src[i], d);
9076 pack_ubyte_a_sint8(src[i], d);
9083 pack_ubyte_a_sint16(src[i], d);
9090 pack_ubyte_a_sint32(src[i], d);
9097 pack_ubyte_i_uint8(src[i], d);
9104 pack_ubyte_i_uint16(src[i], d);
9111 pack_ubyte_i_uint32(src[i], d);
9118 pack_ubyte_i_sint8(src[i], d);
9125 pack_ubyte_i_sint16(src[i], d);
9132 pack_ubyte_i_sint32(src[i], d);
9139 pack_ubyte_l_uint8(src[i], d);
9146 pack_ubyte_l_uint16(src[i], d);
9153 pack_ubyte_l_uint32(src[i], d);
9160 pack_ubyte_l_sint8(src[i], d);
9167 pack_ubyte_l_sint16(src[i], d);
9174 pack_ubyte_l_sint32(src[i], d);
9181 pack_ubyte_la_uint8(src[i], d);
9188 pack_ubyte_la_uint16(src[i], d);
9195 pack_ubyte_la_uint32(src[i], d);
9202 pack_ubyte_la_sint8(src[i], d);
9209 pack_ubyte_la_sint16(src[i], d);
9216 pack_ubyte_la_sint32(src[i], d);
9223 pack_ubyte_r_uint8(src[i], d);
9230 pack_ubyte_r_uint16(src[i], d);
9237 pack_ubyte_r_uint32(src[i], d);
9244 pack_ubyte_r_sint8(src[i], d);
9251 pack_ubyte_r_sint16(src[i], d);
9258 pack_ubyte_r_sint32(src[i], d);
9265 pack_ubyte_rg_uint8(src[i], d);
9272 pack_ubyte_rg_uint16(src[i], d);
9279 pack_ubyte_rg_uint32(src[i], d);
9286 pack_ubyte_rg_sint8(src[i], d);
9293 pack_ubyte_rg_sint16(src[i], d);
9300 pack_ubyte_rg_sint32(src[i], d);
9307 pack_ubyte_rgb_uint8(src[i], d);
9314 pack_ubyte_rgb_uint16(src[i], d);
9321 pack_ubyte_rgb_uint32(src[i], d);
9328 pack_ubyte_rgb_sint8(src[i], d);
9335 pack_ubyte_rgb_sint16(src[i], d);
9342 pack_ubyte_rgb_sint32(src[i], d);
9349 pack_ubyte_rgba_uint8(src[i], d);
9356 pack_ubyte_rgba_uint16(src[i], d);
9363 pack_ubyte_rgba_uint32(src[i], d);
9370 pack_ubyte_rgba_sint8(src[i], d);
9377 pack_ubyte_rgba_sint16(src[i], d);
9384 pack_ubyte_rgba_sint32(src[i], d);
9391 pack_ubyte_rgbx_uint8(src[i], d);
9398 pack_ubyte_rgbx_uint16(src[i], d);
9405 pack_ubyte_rgbx_uint32(src[i], d);
9412 pack_ubyte_rgbx_sint8(src[i], d);
9419 pack_ubyte_rgbx_sint16(src[i], d);
9426 pack_ubyte_rgbx_sint32(src[i], d);
9440 const GLuint src[][4], void *dst)
9449 pack_uint_a8b8g8r8_uint(src[i], d);
9456 pack_uint_a8r8g8b8_uint(src[i], d);
9463 pack_uint_r8g8b8a8_uint(src[i], d);
9470 pack_uint_b8g8r8a8_uint(src[i], d);
9477 pack_uint_b10g10r10a2_uint(src[i], d);
9484 pack_uint_r10g10b10a2_uint(src[i], d);
9491 pack_uint_a2b10g10r10_uint(src[i], d);
9498 pack_uint_a2r10g10b10_uint(src[i], d);
9505 pack_uint_b5g6r5_uint(src[i], d);
9512 pack_uint_r5g6b5_uint(src[i], d);
9519 pack_uint_b2g3r3_uint(src[i], d);
9526 pack_uint_r3g3b2_uint(src[i], d);
9533 pack_uint_a4b4g4r4_uint(src[i], d);
9540 pack_uint_r4g4b4a4_uint(src[i], d);
9547 pack_uint_b4g4r4a4_uint(src[i], d);
9554 pack_uint_a4r4g4b4_uint(src[i], d);
9561 pack_uint_a1b5g5r5_uint(src[i], d);
9568 pack_uint_b5g5r5a1_uint(src[i], d);
9575 pack_uint_a1r5g5b5_uint(src[i], d);
9582 pack_uint_r5g5b5a1_uint(src[i], d);
9589 pack_uint_a_uint8(src[i], d);
9596 pack_uint_a_uint16(src[i], d);
9603 pack_uint_a_uint32(src[i], d);
9610 pack_uint_a_sint8(src[i], d);
9617 pack_uint_a_sint16(src[i], d);
9624 pack_uint_a_sint32(src[i], d);
9631 pack_uint_i_uint8(src[i], d);
9638 pack_uint_i_uint16(src[i], d);
9645 pack_uint_i_uint32(src[i], d);
9652 pack_uint_i_sint8(src[i], d);
9659 pack_uint_i_sint16(src[i], d);
9666 pack_uint_i_sint32(src[i], d);
9673 pack_uint_l_uint8(src[i], d);
9680 pack_uint_l_uint16(src[i], d);
9687 pack_uint_l_uint32(src[i], d);
9694 pack_uint_l_sint8(src[i], d);
9701 pack_uint_l_sint16(src[i], d);
9708 pack_uint_l_sint32(src[i], d);
9715 pack_uint_la_uint8(src[i], d);
9722 pack_uint_la_uint16(src[i], d);
9729 pack_uint_la_uint32(src[i], d);
9736 pack_uint_la_sint8(src[i], d);
9743 pack_uint_la_sint16(src[i], d);
9750 pack_uint_la_sint32(src[i], d);
9757 pack_uint_r_uint8(src[i], d);
9764 pack_uint_r_uint16(src[i], d);
9771 pack_uint_r_uint32(src[i], d);
9778 pack_uint_r_sint8(src[i], d);
9785 pack_uint_r_sint16(src[i], d);
9792 pack_uint_r_sint32(src[i], d);
9799 pack_uint_rg_uint8(src[i], d);
9806 pack_uint_rg_uint16(src[i], d);
9813 pack_uint_rg_uint32(src[i], d);
9820 pack_uint_rg_sint8(src[i], d);
9827 pack_uint_rg_sint16(src[i], d);
9834 pack_uint_rg_sint32(src[i], d);
9841 pack_uint_rgb_uint8(src[i], d);
9848 pack_uint_rgb_uint16(src[i], d);
9855 pack_uint_rgb_uint32(src[i], d);
9862 pack_uint_rgb_sint8(src[i], d);
9869 pack_uint_rgb_sint16(src[i], d);
9876 pack_uint_rgb_sint32(src[i], d);
9883 pack_uint_rgba_uint8(src[i], d);
9890 pack_uint_rgba_uint16(src[i], d);
9897 pack_uint_rgba_uint32(src[i], d);
9904 pack_uint_rgba_sint8(src[i], d);
9911 pack_uint_rgba_sint16(src[i], d);
9918 pack_uint_rgba_sint32(src[i], d);
9925 pack_uint_rgbx_uint8(src[i], d);
9932 pack_uint_rgbx_uint16(src[i], d);
9939 pack_uint_rgbx_uint32(src[i], d);
9946 pack_uint_rgbx_sint8(src[i], d);
9953 pack_uint_rgbx_sint16(src[i], d);
9960 pack_uint_rgbx_sint32(src[i], d);
9974 const GLfloat src[][4], void *dst)
9983 pack_float_a8b8g8r8_unorm(src[i], d);
9990 pack_float_x8b8g8r8_unorm(src[i], d);
9997 pack_float_r8g8b8a8_unorm(src[i], d);
10004 pack_float_r8g8b8x8_unorm(src[i], d);
10011 pack_float_b8g8r8a8_unorm(src[i], d);
10018 pack_float_b8g8r8x8_unorm(src[i], d);
10025 pack_float_a8r8g8b8_unorm(src[i], d);
10032 pack_float_x8r8g8b8_unorm(src[i], d);
10039 pack_float_l16a16_unorm(src[i], d);
10046 pack_float_a16l16_unorm(src[i], d);
10053 pack_float_b5g6r5_unorm(src[i], d);
10060 pack_float_r5g6b5_unorm(src[i], d);
10067 pack_float_b4g4r4a4_unorm(src[i], d);
10074 pack_float_b4g4r4x4_unorm(src[i], d);
10081 pack_float_a4r4g4b4_unorm(src[i], d);
10088 pack_float_a1b5g5r5_unorm(src[i], d);
10095 pack_float_x1b5g5r5_unorm(src[i], d);
10102 pack_float_b5g5r5a1_unorm(src[i], d);
10109 pack_float_b5g5r5x1_unorm(src[i], d);
10116 pack_float_a1r5g5b5_unorm(src[i], d);
10123 pack_float_l8a8_unorm(src[i], d);
10130 pack_float_a8l8_unorm(src[i], d);
10137 pack_float_r8g8_unorm(src[i], d);
10144 pack_float_g8r8_unorm(src[i], d);
10151 pack_float_l4a4_unorm(src[i], d);
10158 pack_float_b2g3r3_unorm(src[i], d);
10165 pack_float_r16g16_unorm(src[i], d);
10172 pack_float_g16r16_unorm(src[i], d);
10179 pack_float_b10g10r10a2_unorm(src[i], d);
10186 pack_float_b10g10r10x2_unorm(src[i], d);
10193 pack_float_r10g10b10a2_unorm(src[i], d);
10200 pack_float_r10g10b10x2_unorm(src[i], d);
10207 pack_float_r3g3b2_unorm(src[i], d);
10214 pack_float_a4b4g4r4_unorm(src[i], d);
10221 pack_float_r4g4b4a4_unorm(src[i], d);
10228 pack_float_r5g5b5a1_unorm(src[i], d);
10235 pack_float_a2b10g10r10_unorm(src[i], d);
10242 pack_float_a2r10g10b10_unorm(src[i], d);
10249 pack_float_a_unorm8(src[i], d);
10256 pack_float_a_unorm16(src[i], d);
10263 pack_float_l_unorm8(src[i], d);
10270 pack_float_l_unorm16(src[i], d);
10277 pack_float_i_unorm8(src[i], d);
10284 pack_float_i_unorm16(src[i], d);
10291 pack_float_r_unorm8(src[i], d);
10298 pack_float_r_unorm16(src[i], d);
10305 pack_float_bgr_unorm8(src[i], d);
10312 pack_float_rgb_unorm8(src[i], d);
10319 pack_float_rgba_unorm16(src[i], d);
10326 pack_float_rgbx_unorm16(src[i], d);
10333 pack_float_a8b8g8r8_snorm(src[i], d);
10340 pack_float_x8b8g8r8_snorm(src[i], d);
10347 pack_float_r8g8b8a8_snorm(src[i], d);
10354 pack_float_r8g8b8x8_snorm(src[i], d);
10361 pack_float_r16g16_snorm(src[i], d);
10368 pack_float_g16r16_snorm(src[i], d);
10375 pack_float_r8g8_snorm(src[i], d);
10382 pack_float_g8r8_snorm(src[i], d);
10389 pack_float_l8a8_snorm(src[i], d);
10396 pack_float_a8l8_snorm(src[i], d);
10403 pack_float_a_snorm8(src[i], d);
10410 pack_float_a_snorm16(src[i], d);
10417 pack_float_l_snorm8(src[i], d);
10424 pack_float_l_snorm16(src[i], d);
10431 pack_float_i_snorm8(src[i], d);
10438 pack_float_i_snorm16(src[i], d);
10445 pack_float_r_snorm8(src[i], d);
10452 pack_float_r_snorm16(src[i], d);
10459 pack_float_la_snorm16(src[i], d);
10466 pack_float_rgb_snorm16(src[i], d);
10473 pack_float_rgba_snorm16(src[i], d);
10480 pack_float_rgbx_snorm16(src[i], d);
10487 pack_float_a8b8g8r8_srgb(src[i], d);
10494 pack_float_b8g8r8a8_srgb(src[i], d);
10501 pack_float_a8r8g8b8_srgb(src[i], d);
10508 pack_float_b8g8r8x8_srgb(src[i], d);
10515 pack_float_x8r8g8b8_srgb(src[i], d);
10522 pack_float_r8g8b8a8_srgb(src[i], d);
10529 pack_float_r8g8b8x8_srgb(src[i], d);
10536 pack_float_x8b8g8r8_srgb(src[i], d);
10543 pack_float_l8a8_srgb(src[i], d);
10550 pack_float_a8l8_srgb(src[i], d);
10557 pack_float_r_srgb8(src[i], d);
10564 pack_float_l_srgb8(src[i], d);
10571 pack_float_bgr_srgb8(src[i], d);
10578 pack_float_r9g9b9e5_float(src[i], d);
10585 pack_float_r11g11b10_float(src[i], d);
10592 pack_float_a_float16(src[i], d);
10599 pack_float_a_float32(src[i], d);
10606 pack_float_l_float16(src[i], d);
10613 pack_float_l_float32(src[i], d);
10620 pack_float_la_float16(src[i], d);
10627 pack_float_la_float32(src[i], d);
10634 pack_float_i_float16(src[i], d);
10641 pack_float_i_float32(src[i], d);
10648 pack_float_r_float16(src[i], d);
10655 pack_float_r_float32(src[i], d);
10662 pack_float_rg_float16(src[i], d);
10669 pack_float_rg_float32(src[i], d);
10676 pack_float_rgb_float16(src[i], d);
10683 pack_float_rgb_float32(src[i], d);
10690 pack_float_rgba_float16(src[i], d);
10697 pack_float_rgba_float32(src[i], d);
10704 pack_float_rgbx_float16(src[i], d);
10711 pack_float_rgbx_float32(src[i], d);
10727 const GLubyte *src, GLint srcRowStride,
10737 (const GLubyte (*)[4]) src, dst);
10743 (const GLubyte (*)[4]) src, dstUB);
10744 src += srcRowStride;
10764 pack_float_S8_UINT_Z24_UNORM(const GLfloat *src, void *dst)
10770 GLuint z = (GLuint) (*src * scale);
10776 pack_float_Z24_UNORM_S8_UINT(const GLfloat *src, void *dst)
10782 GLuint z = (GLuint) (*src * scale);
10788 pack_float_Z_UNORM16(const GLfloat *src, void *dst)
10792 *d = (GLushort) (*src * scale);
10796 pack_float_Z_UNORM32(const GLfloat *src, void *dst)
10800 *d = (GLuint) (*src * scale);
10808 pack_float_Z_FLOAT32(const GLfloat *src, void *dst)
10811 *d = *src;
10841 ** Pack uint Z pixels. The incoming src value is always in
10846 pack_uint_S8_UINT_Z24_UNORM(const GLuint *src, void *dst)
10851 GLuint z = *src & 0xffffff00;
10856 pack_uint_Z24_UNORM_S8_UINT(const GLuint *src, void *dst)
10861 GLuint z = *src >> 8;
10866 pack_uint_Z_UNORM16(const GLuint *src, void *dst)
10869 *d = *src >> 16;
10873 pack_uint_Z_UNORM32(const GLuint *src, void *dst)
10876 *d = *src;
10884 pack_uint_Z_FLOAT32(const GLuint *src, void *dst)
10888 *d = (GLfloat) (*src * scale);
10922 pack_ubyte_stencil_Z24_S8(const GLubyte *src, void *dst)
10926 GLuint s = *src;
10932 pack_ubyte_stencil_S8_Z24(const GLubyte *src, void *dst)
10936 GLuint s = *src << 24;
10942 pack_ubyte_stencil_S8(const GLubyte *src, void *dst)
10945 *d = *src;
10949 pack_ubyte_stencil_Z32_FLOAT_X24S8(const GLubyte *src, void *dst)
10952 d[1] = *src;
10979 const GLfloat *src, void *dst)
10991 GLuint z = (GLuint) (src[i] * scale);
11006 GLuint z = (GLuint) (src[i] * scale);
11018 d[i] = (GLushort) (src[i] * scale);
11028 d[i] = (GLuint) (src[i] * scale);
11033 memcpy(dst, src, n * sizeof(GLfloat));
11040 d[i].z = src[i];
11055 const GLuint *src, void *dst)
11066 GLuint z = src[i] & 0xffffff00;
11079 GLuint z = src[i] >> 8;
11089 d[i] = src[i] >> 16;
11094 memcpy(dst, src, n * sizeof(GLfloat));
11102 d[i] = (GLuint) (src[i] * scale);
11114 d[i].z = (GLfloat) (src[i] * scale);
11128 const GLubyte *src, void *dst)
11137 GLuint s = src[i];
11149 GLuint s = src[i] << 24;
11156 memcpy(dst, src, n * sizeof(GLubyte));
11163 d[i].x24s8 = src[i];
11178 const GLuint *src, void *dst)
11182 memcpy(dst, src, n * sizeof(GLuint));
11189 GLuint s = src[i] << 24;
11190 GLuint z = src[i] >> 8;
11201 GLfloat z = (GLfloat) ((src[i] >> 8) * scale);
11203 d[i].x24s8 = src[i];