Home | History | Annotate | Download | only in main

Lines Matching refs:src

54                                          const GLubyte src[][4], void *dst);
57 const GLfloat src[][4], void *dst);
98 pack_ubyte_RGBA8888(const GLubyte src[4], void *dst)
101 *d = PACK_COLOR_8888(src[RCOMP], src[GCOMP], src[BCOMP], src[ACOMP]);
105 pack_float_RGBA8888(const GLfloat src[4], void *dst)
108 _mesa_unclamped_float_rgba_to_ubyte(v, src);
113 pack_row_ubyte_RGBA8888(GLuint n, const GLubyte src[][4], void *dst)
118 d[i] = PACK_COLOR_8888(src[i][RCOMP], src[i][GCOMP],
119 src[i][BCOMP], src[i][ACOMP]);
124 pack_row_float_RGBA8888(GLuint n, const GLfloat src[][4], void *dst)
130 _mesa_unclamped_float_rgba_to_ubyte(v, src[i]);
142 pack_ubyte_RGBA8888_REV(const GLubyte src[4], void *dst)
145 *d = PACK_COLOR_8888(src[ACOMP], src[BCOMP], src[GCOMP], src[RCOMP]);
149 pack_float_RGBA8888_REV(const GLfloat src[4], void *dst)
152 _mesa_unclamped_float_rgba_to_ubyte(v, src);
157 pack_row_ubyte_RGBA8888_REV(GLuint n, const GLubyte src[][4], void *dst)
162 d[i] = PACK_COLOR_8888(src[i][ACOMP], src[i][BCOMP],
163 src[i][GCOMP], src[i][RCOMP]);
168 pack_row_float_RGBA8888_REV(GLuint n, const GLfloat src[][4], void *dst)
174 _mesa_unclamped_float_rgba_to_ubyte(v, src[i]);
185 pack_ubyte_ARGB8888(const GLubyte src[4], void *dst)
188 *d = PACK_COLOR_8888(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]);
192 pack_float_ARGB8888(const GLfloat src[4], void *dst)
195 _mesa_unclamped_float_rgba_to_ubyte(v, src);
200 pack_row_ubyte_ARGB8888(GLuint n, const GLubyte src[][4], void *dst)
205 d[i] = PACK_COLOR_8888(src[i][ACOMP], src[i][RCOMP],
206 src[i][GCOMP], src[i][BCOMP]);
211 pack_row_float_ARGB8888(GLuint n, const GLfloat src[][4], void *dst)
217 _mesa_unclamped_float_rgba_to_ubyte(v, src[i]);
228 pack_ubyte_ARGB8888_REV(const GLubyte src[4], void *dst)
231 *d = PACK_COLOR_8888(src[BCOMP], src[GCOMP], src[RCOMP], src[ACOMP]);
235 pack_float_ARGB8888_REV(const GLfloat src[4], void *dst)
238 _mesa_unclamped_float_rgba_to_ubyte(v, src);
243 pack_row_ubyte_ARGB8888_REV(GLuint n, const GLubyte src[][4], void *dst)
248 d[i] = PACK_COLOR_8888(src[i][BCOMP], src[i][GCOMP],
249 src[i][RCOMP], src[i][ACOMP]);
254 pack_row_float_ARGB8888_REV(GLuint n, const GLfloat src[][4], void *dst)
260 _mesa_unclamped_float_rgba_to_ubyte(v, src[i]);
271 pack_ubyte_XRGB8888(const GLubyte src[4], void *dst)
274 *d = PACK_COLOR_8888(0x0, src[RCOMP], src[GCOMP], src[BCOMP]);
278 pack_float_XRGB8888(const GLfloat src[4], void *dst)
281 _mesa_unclamped_float_rgba_to_ubyte(v, src);
286 pack_row_ubyte_XRGB8888(GLuint n, const GLubyte src[][4], void *dst)
291 d[i] = PACK_COLOR_8888(0, src[i][RCOMP], src[i][GCOMP], src[i][BCOMP]);
296 pack_row_float_XRGB8888(GLuint n, const GLfloat src[][4], void *dst)
302 _mesa_unclamped_float_rgba_to_ubyte(v, src[i]);
313 pack_ubyte_XRGB8888_REV(const GLubyte src[4], void *dst)
316 *d = PACK_COLOR_8888(src[BCOMP], src[GCOMP], src[RCOMP], 0);
320 pack_float_XRGB8888_REV(const GLfloat src[4], void *dst)
323 _mesa_unclamped_float_rgba_to_ubyte(v, src);
328 pack_row_ubyte_XRGB8888_REV(GLuint n, const GLubyte src[][4], void *dst)
333 d[i] = PACK_COLOR_8888(src[i][BCOMP], src[i][GCOMP], src[i][RCOMP], 0);
338 pack_row_float_XRGB8888_REV(GLuint n, const GLfloat src[][4], void *dst)
344 _mesa_unclamped_float_rgba_to_ubyte(v, src[i]);
355 pack_ubyte_RGB888(const GLubyte src[4], void *dst)
358 d[2] = src[RCOMP];
359 d[1] = src[GCOMP];
360 d[0] = src[BCOMP];
364 pack_float_RGB888(const GLfloat src[4], void *dst)
367 UNCLAMPED_FLOAT_TO_UBYTE(d[2], src[RCOMP]);
368 UNCLAMPED_FLOAT_TO_UBYTE(d[1], src[GCOMP]);
369 UNCLAMPED_FLOAT_TO_UBYTE(d[0], src[BCOMP]);
373 pack_row_ubyte_RGB888(GLuint n, const GLubyte src[][4], void *dst)
378 d[i*3+2] = src[i][RCOMP];
379 d[i*3+1] = src[i][GCOMP];
380 d[i*3+0] = src[i][BCOMP];
385 pack_row_float_RGB888(GLuint n, const GLfloat src[][4], void *dst)
391 _mesa_unclamped_float_rgba_to_ubyte(v, src[i]);
404 pack_ubyte_BGR888(const GLubyte src[4], void *dst)
407 d[2] = src[BCOMP];
408 d[1] = src[GCOMP];
409 d[0] = src[RCOMP];
413 pack_float_BGR888(const GLfloat src[4], void *dst)
416 UNCLAMPED_FLOAT_TO_UBYTE(d[2], src[BCOMP]);
417 UNCLAMPED_FLOAT_TO_UBYTE(d[1], src[GCOMP]);
418 UNCLAMPED_FLOAT_TO_UBYTE(d[0], src[RCOMP]);
422 pack_row_ubyte_BGR888(GLuint n, const GLubyte src[][4], void *dst)
427 d[i*3+2] = src[i][BCOMP];
428 d[i*3+1] = src[i][GCOMP];
429 d[i*3+0] = src[i][RCOMP];
434 pack_row_float_BGR888(GLuint n, const GLfloat src[][4], void *dst)
440 _mesa_unclamped_float_rgba_to_ubyte(v, src[i]);
453 pack_ubyte_RGB565(const GLubyte src[4], void *dst)
456 *d = PACK_COLOR_565(src[RCOMP], src[GCOMP], src[BCOMP]);
460 pack_float_RGB565(const GLfloat src[4], void *dst)
463 UNCLAMPED_FLOAT_TO_UBYTE(v[0], src[RCOMP]);
464 UNCLAMPED_FLOAT_TO_UBYTE(v[1], src[GCOMP]);
465 UNCLAMPED_FLOAT_TO_UBYTE(v[2], src[BCOMP]);
470 pack_row_ubyte_RGB565(GLuint n, const GLubyte src[][4], void *dst)
475 pack_ubyte_RGB565(src[i], d + i);
480 pack_row_float_RGB565(GLuint n, const GLfloat src[][4], void *dst)
486 _mesa_unclamped_float_rgba_to_ubyte(v, src[i]);
497 pack_ubyte_RGB565_REV(const GLubyte src[4], void *dst)
500 *d = PACK_COLOR_565_REV(src[RCOMP], src[GCOMP], src[BCOMP]);
504 pack_float_RGB565_REV(const GLfloat src[4], void *dst)
508 UNCLAMPED_FLOAT_TO_UBYTE(r, src[RCOMP]);
509 UNCLAMPED_FLOAT_TO_UBYTE(g, src[GCOMP]);
510 UNCLAMPED_FLOAT_TO_UBYTE(b, src[BCOMP]);
515 pack_row_ubyte_RGB565_REV(GLuint n, const GLubyte src[][4], void *dst)
520 pack_ubyte_RGB565_REV(src[i], d + i);
525 pack_row_float_RGB565_REV(GLuint n, const GLfloat src[][4], void *dst)
531 _mesa_unclamped_float_rgba_to_ubyte(v, src[i]);
542 pack_ubyte_ARGB4444(const GLubyte src[4], void *dst)
545 *d = PACK_COLOR_4444(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]);
549 pack_float_ARGB4444(const GLfloat src[4], void *dst)
552 _mesa_unclamped_float_rgba_to_ubyte(v, src);
564 pack_ubyte_ARGB4444_REV(const GLubyte src[4], void *dst)
567 *d = PACK_COLOR_4444(src[GCOMP], src[BCOMP], src[ACOMP], src[RCOMP]);
571 pack_float_ARGB4444_REV(const GLfloat src[4], void *dst)
574 _mesa_unclamped_float_rgba_to_ubyte(v, src);
586 pack_ubyte_RGBA5551(const GLubyte src[4], void *dst)
589 *d = PACK_COLOR_5551(src[RCOMP], src[GCOMP], src[BCOMP], src[ACOMP]);
593 pack_float_RGBA5551(const GLfloat src[4], void *dst)
596 _mesa_unclamped_float_rgba_to_ubyte(v, src);
608 pack_ubyte_ARGB1555(const GLubyte src[4], void *dst)
611 *d = PACK_COLOR_1555(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]);
615 pack_float_ARGB1555(const GLfloat src[4], void *dst)
618 _mesa_unclamped_float_rgba_to_ubyte(v, src);
626 pack_ubyte_ARGB1555_REV(const GLubyte src[4], void *dst)
629 tmp = PACK_COLOR_1555(src[ACOMP], src[RCOMP], src[GCOMP], src[BCOMP]);
634 pack_float_ARGB1555_REV(const GLfloat src[4], void *dst)
637 _mesa_unclamped_float_rgba_to_ubyte(v, src);
645 pack_ubyte_AL44(const GLubyte src[4], void *dst)
648 *d = PACK_COLOR_44(src[ACOMP], src[RCOMP]);
652 pack_float_AL44(const GLfloat src[4], void *dst)
655 UNCLAMPED_FLOAT_TO_UBYTE(v[0], src[RCOMP]);
656 UNCLAMPED_FLOAT_TO_UBYTE(v[3], src[ACOMP]);
664 pack_ubyte_AL88(const GLubyte src[4], void *dst)
667 *d = PACK_COLOR_88(src[ACOMP], src[RCOMP]);
671 pack_float_AL88(const GLfloat src[4], void *dst)
674 UNCLAMPED_FLOAT_TO_UBYTE(v[0], src[RCOMP]);
675 UNCLAMPED_FLOAT_TO_UBYTE(v[3], src[ACOMP]);
683 pack_ubyte_AL88_REV(const GLubyte src[4], void *dst)
686 *d = PACK_COLOR_88(src[RCOMP], src[ACOMP]);
690 pack_float_AL88_REV(const GLfloat src[4], void *dst)
693 UNCLAMPED_FLOAT_TO_UBYTE(v[0], src[RCOMP]);
694 UNCLAMPED_FLOAT_TO_UBYTE(v[3], src[ACOMP]);
702 pack_ubyte_AL1616(const GLubyte src[4], void *dst)
705 GLushort l = UBYTE_TO_USHORT(src[RCOMP]);
706 GLushort a = UBYTE_TO_USHORT(src[ACOMP]);
711 pack_float_AL1616(const GLfloat src[4], void *dst)
715 UNCLAMPED_FLOAT_TO_USHORT(l, src[RCOMP]);
716 UNCLAMPED_FLOAT_TO_USHORT(a, src[ACOMP]);
724 pack_ubyte_AL1616_REV(const GLubyte src[4], void *dst)
727 GLushort l = UBYTE_TO_USHORT(src[RCOMP]);
728 GLushort a = UBYTE_TO_USHORT(src[ACOMP]);
733 pack_float_AL1616_REV(const GLfloat src[4], void *dst)
737 UNCLAMPED_FLOAT_TO_USHORT(l, src[RCOMP]);
738 UNCLAMPED_FLOAT_TO_USHORT(a, src[ACOMP]);
746 pack_ubyte_RGB332(const GLubyte src[4], void *dst)
749 *d = PACK_COLOR_332(src[RCOMP], src[GCOMP], src[BCOMP]);
753 pack_float_RGB332(const GLfloat src[4], void *dst)
756 UNCLAMPED_FLOAT_TO_UBYTE(v[0], src[RCOMP]);
757 UNCLAMPED_FLOAT_TO_UBYTE(v[1], src[GCOMP]);
758 UNCLAMPED_FLOAT_TO_UBYTE(v[2], src[BCOMP]);
766 pack_ubyte_A8(const GLubyte src[4], void *dst)
769 *d = src[ACOMP];
773 pack_float_A8(const GLfloat src[4], void *dst)
776 UNCLAMPED_FLOAT_TO_UBYTE(d[0], src[ACOMP]);
783 pack_ubyte_A16(const GLubyte src[4], void *dst)
786 *d = UBYTE_TO_USHORT(src[ACOMP]);
790 pack_float_A16(const GLfloat src[4], void *dst)
793 UNCLAMPED_FLOAT_TO_USHORT(d[0], src[ACOMP]);
800 pack_ubyte_L8(const GLubyte src[4], void *dst)
803 *d = src[RCOMP];
807 pack_float_L8(const GLfloat src[4], void *dst)
810 UNCLAMPED_FLOAT_TO_UBYTE(d[0], src[RCOMP]);
817 pack_ubyte_L16(const GLubyte src[4], void *dst)
820 *d = UBYTE_TO_USHORT(src[RCOMP]);
824 pack_float_L16(const GLfloat src[4], void *dst)
827 UNCLAMPED_FLOAT_TO_USHORT(d[0], src[RCOMP]);
834 pack_ubyte_YCBCR(const GLubyte src[4], void *dst)
840 pack_float_YCBCR(const GLfloat src[4], void *dst)
849 pack_ubyte_YCBCR_REV(const GLubyte src[4], void *dst)
855 pack_float_YCBCR_REV(const GLfloat src[4], void *dst)
864 pack_ubyte_R8(const GLubyte src[4], void *dst)
867 *d = src[RCOMP];
871 pack_float_R8(const GLfloat src[4], void *dst)
875 UNCLAMPED_FLOAT_TO_UBYTE(r, src[RCOMP]);
883 pack_ubyte_GR88(const GLubyte src[4], void *dst)
886 *d = PACK_COLOR_88(src[GCOMP], src[RCOMP]);
890 pack_float_GR88(const GLfloat src[4], void *dst)
894 UNCLAMPED_FLOAT_TO_UBYTE(r, src[RCOMP]);
895 UNCLAMPED_FLOAT_TO_UBYTE(g, src[GCOMP]);
903 pack_ubyte_RG88(const GLubyte src[4], void *dst)
906 *d = PACK_COLOR_88(src[RCOMP], src[GCOMP]);
910 pack_float_RG88(const GLfloat src[4], void *dst)
914 UNCLAMPED_FLOAT_TO_UBYTE(r, src[RCOMP]);
915 UNCLAMPED_FLOAT_TO_UBYTE(g, src[GCOMP]);
923 pack_ubyte_R16(const GLubyte src[4], void *dst)
926 *d = UBYTE_TO_USHORT(src[RCOMP]);
930 pack_float_R16(const GLfloat src[4], void *dst)
933 UNCLAMPED_FLOAT_TO_USHORT(d[0], src[RCOMP]);
940 pack_ubyte_RG1616(const GLubyte src[4], void *dst)
943 GLushort r = UBYTE_TO_USHORT(src[RCOMP]);
944 GLushort g = UBYTE_TO_USHORT(src[GCOMP]);
949 pack_float_RG1616(const GLfloat src[4], void *dst)
953 UNCLAMPED_FLOAT_TO_USHORT(r, src[RCOMP]);
954 UNCLAMPED_FLOAT_TO_USHORT(g, src[GCOMP]);
962 pack_ubyte_RG1616_REV(const GLubyte src[4], void *dst)
965 GLushort r = UBYTE_TO_USHORT(src[RCOMP]);
966 GLushort g = UBYTE_TO_USHORT(src[GCOMP]);
972 pack_float_RG1616_REV(const GLfloat src[4], void *dst)
976 UNCLAMPED_FLOAT_TO_USHORT(r, src[RCOMP]);
977 UNCLAMPED_FLOAT_TO_USHORT(g, src[GCOMP]);
985 pack_ubyte_ARGB2101010(const GLubyte src[4], void *dst)
988 GLushort r = UBYTE_TO_USHORT(src[RCOMP]);
989 GLushort g = UBYTE_TO_USHORT(src[GCOMP]);
990 GLushort b = UBYTE_TO_USHORT(src[BCOMP]);
991 GLushort a = UBYTE_TO_USHORT(src[ACOMP]);
996 pack_float_ARGB2101010(const GLfloat src[4], void *dst)
1000 UNCLAMPED_FLOAT_TO_USHORT(r, src[RCOMP]);
1001 UNCLAMPED_FLOAT_TO_USHORT(g, src[GCOMP]);
1002 UNCLAMPED_FLOAT_TO_USHORT(b, src[BCOMP]);
1003 UNCLAMPED_FLOAT_TO_USHORT(a, src[ACOMP]);
1011 pack_ubyte_ABGR2101010_UINT(const GLubyte src[4], void *dst)
1014 GLushort r = UBYTE_TO_USHORT(src[RCOMP]);
1015 GLushort g = UBYTE_TO_USHORT(src[GCOMP]);
1016 GLushort b = UBYTE_TO_USHORT(src[BCOMP]);
1017 GLushort a = UBYTE_TO_USHORT(src[ACOMP]);
1022 pack_float_ABGR2101010_UINT(const GLfloat src[4], void *dst)
1026 UNCLAMPED_FLOAT_TO_USHORT(r, src[RCOMP]);
1027 UNCLAMPED_FLOAT_TO_USHORT(g, src[GCOMP]);
1028 UNCLAMPED_FLOAT_TO_USHORT(b, src[BCOMP]);
1029 UNCLAMPED_FLOAT_TO_USHORT(a, src[ACOMP]);
1037 pack_ubyte_SRGB8(const GLubyte src[4], void *dst)
1040 d[2] = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
1041 d[1] = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
1042 d[0] = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
1046 pack_float_SRGB8(const GLfloat src[4], void *dst)
1049 d[2] = linear_float_to_srgb_ubyte(src[RCOMP]);
1050 d[1] = linear_float_to_srgb_ubyte(src[GCOMP]);
1051 d[0] = linear_float_to_srgb_ubyte(src[BCOMP]);
1058 pack_ubyte_SRGBA8(const GLubyte src[4], void *dst)
1061 GLubyte r = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
1062 GLubyte g = linear_ubyte_to_srgb_ubyte(src[GCOMP]);
1063 GLubyte b = linear_ubyte_to_srgb_ubyte(src[BCOMP]);
1064 *d = PACK_COLOR_8888(r, g, b, src[ACOMP]);
1068 pack_float_SRGBA8(const GLfloat src[4], void *dst)
1072 r = linear_float_to_srgb_ubyte(src[RCOMP]);
1073 g = linear_float_to_srgb_ubyte(src[GCOMP]);
1074 b = linear_float_to_srgb_ubyte(src[BCOMP]);
1075 UNCLAMPED_FLOAT_TO_UBYTE(a, src[ACOMP]);
1083 pack_ubyte_SARGB8(const GLubyte src[4], void *dst)
1086 GLubyte r = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
1087 GLubyte g = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
1088 GLubyte b = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
1089 *d = PACK_COLOR_8888(src[ACOMP], r, g, b);
1093 pack_float_SARGB8(const GLfloat src[4], void *dst)
1097 r = linear_float_to_srgb_ubyte(src[RCOMP]);
1098 g = linear_float_to_srgb_ubyte(src[GCOMP]);
1099 b = linear_float_to_srgb_ubyte(src[BCOMP]);
1100 UNCLAMPED_FLOAT_TO_UBYTE(a, src[ACOMP]);
1108 pack_ubyte_SL8(const GLubyte src[4], void *dst)
1111 *d = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
1115 pack_float_SL8(const GLfloat src[4], void *dst)
1118 GLubyte l = linear_float_to_srgb_ubyte(src[RCOMP]);
1126 pack_ubyte_SLA8(const GLubyte src[4], void *dst)
1129 GLubyte l = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
1130 *d = PACK_COLOR_88(src[ACOMP], l);
1134 pack_float_SLA8(const GLfloat src[4], void *dst)
1137 GLubyte a, l = linear_float_to_srgb_ubyte(src[RCOMP]);
1138 CLAMPED_FLOAT_TO_UBYTE(a, src[ACOMP]);
1146 pack_ubyte_RGBA_FLOAT32(const GLubyte src[4], void *dst)
1149 d[0] = UBYTE_TO_FLOAT(src[0]);
1150 d[1] = UBYTE_TO_FLOAT(src[1]);
1151 d[2] = UBYTE_TO_FLOAT(src[2]);
1152 d[3] = UBYTE_TO_FLOAT(src[3]);
1156 pack_float_RGBA_FLOAT32(const GLfloat src[4], void *dst)
1159 d[0] = src[0];
1160 d[1] = src[1];
1161 d[2] = src[2];
1162 d[3] = src[3];
1169 pack_ubyte_RGBA_FLOAT16(const GLubyte src[4], void *dst)
1172 d[0] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[0]));
1173 d[1] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[1]));
1174 d[2] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[2]));
1175 d[3] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[3]));
1179 pack_float_RGBA_FLOAT16(const GLfloat src[4], void *dst)
1182 d[0] = _mesa_float_to_half(src[0]);
1183 d[1] = _mesa_float_to_half(src[1]);
1184 d[2] = _mesa_float_to_half(src[2]);
1185 d[3] = _mesa_float_to_half(src[3]);
1192 pack_ubyte_RGB_FLOAT32(const GLubyte src[4], void *dst)
1195 d[0] = UBYTE_TO_FLOAT(src[0]);
1196 d[1] = UBYTE_TO_FLOAT(src[1]);
1197 d[2] = UBYTE_TO_FLOAT(src[2]);
1201 pack_float_RGB_FLOAT32(const GLfloat src[4], void *dst)
1204 d[0] = src[0];
1205 d[1] = src[1];
1206 d[2] = src[2];
1213 pack_ubyte_RGB_FLOAT16(const GLubyte src[4], void *dst)
1216 d[0] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[0]));
1217 d[1] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[1]));
1218 d[2] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[2]));
1222 pack_float_RGB_FLOAT16(const GLfloat src[4], void *dst)
1225 d[0] = _mesa_float_to_half(src[0]);
1226 d[1] = _mesa_float_to_half(src[1]);
1227 d[2] = _mesa_float_to_half(src[2]);
1234 pack_ubyte_ALPHA_FLOAT32(const GLubyte src[4], void *dst)
1237 d[0] = UBYTE_TO_FLOAT(src[ACOMP]);
1241 pack_float_ALPHA_FLOAT32(const GLfloat src[4], void *dst)
1244 d[0] = src[ACOMP];
1251 pack_ubyte_ALPHA_FLOAT16(const GLubyte src[4], void *dst)
1254 d[0] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[ACOMP]));
1258 pack_float_ALPHA_FLOAT16(const GLfloat src[4], void *dst)
1261 d[0] = _mesa_float_to_half(src[ACOMP]);
1268 pack_ubyte_LUMINANCE_FLOAT32(const GLubyte src[4], void *dst)
1271 d[0] = UBYTE_TO_FLOAT(src[RCOMP]);
1275 pack_float_LUMINANCE_FLOAT32(const GLfloat src[4], void *dst)
1278 d[0] = src[RCOMP];
1285 pack_ubyte_LUMINANCE_FLOAT16(const GLubyte src[4], void *dst)
1288 d[0] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[RCOMP]));
1292 pack_float_LUMINANCE_FLOAT16(const GLfloat src[4], void *dst)
1295 d[0] = _mesa_float_to_half(src[RCOMP]);
1302 pack_ubyte_LUMINANCE_ALPHA_FLOAT32(const GLubyte src[4], void *dst)
1305 d[0] = UBYTE_TO_FLOAT(src[RCOMP]);
1306 d[1] = UBYTE_TO_FLOAT(src[ACOMP]);
1310 pack_float_LUMINANCE_ALPHA_FLOAT32(const GLfloat src[4], void *dst)
1313 d[0] = src[RCOMP];
1314 d[1] = src[ACOMP];
1321 pack_ubyte_LUMINANCE_ALPHA_FLOAT16(const GLubyte src[4], void *dst)
1324 d[0] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[RCOMP]));
1325 d[1] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[ACOMP]));
1329 pack_float_LUMINANCE_ALPHA_FLOAT16(const GLfloat src[4], void *dst)
1332 d[0] = _mesa_float_to_half(src[RCOMP]);
1333 d[1] = _mesa_float_to_half(src[ACOMP]);
1340 pack_ubyte_RG_FLOAT32(const GLubyte src[4], void *dst)
1343 d[0] = UBYTE_TO_FLOAT(src[RCOMP]);
1344 d[1] = UBYTE_TO_FLOAT(src[GCOMP]);
1348 pack_float_RG_FLOAT32(const GLfloat src[4], void *dst)
1351 d[0] = src[RCOMP];
1352 d[1] = src[GCOMP];
1359 pack_ubyte_RG_FLOAT16(const GLubyte src[4], void *dst)
1362 d[0] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[RCOMP]));
1363 d[1] = _mesa_float_to_half(UBYTE_TO_FLOAT(src[GCOMP]));
1367 pack_float_RG_FLOAT16(const GLfloat src[4], void *dst)
1370 d[0] = _mesa_float_to_half(src[RCOMP]);
1371 d[1] = _mesa_float_to_half(src[GCOMP]);
1378 pack_ubyte_DUDV8(const GLubyte src[4], void *dst)
1382 *d = PACK_COLOR_88(src[0], src[1]);
1386 pack_float_DUDV8(const GLfloat src[4], void *dst)
1390 du = FLOAT_TO_BYTE(CLAMP(src[0], 0.0F, 1.0F));
1391 dv = FLOAT_TO_BYTE(CLAMP(src[1], 0.0F, 1.0F));
1399 pack_ubyte_RGBA_16(const GLubyte src[4], void *dst)
1402 d[0] = UBYTE_TO_USHORT(src[RCOMP]);
1403 d[1] = UBYTE_TO_USHORT(src[GCOMP]);
1404 d[2] = UBYTE_TO_USHORT(src[BCOMP]);
1405 d[3] = UBYTE_TO_USHORT(src[ACOMP]);
1409 pack_float_RGBA_16(const GLfloat src[4], void *dst)
1412 UNCLAMPED_FLOAT_TO_USHORT(d[0], src[RCOMP]);
1413 UNCLAMPED_FLOAT_TO_USHORT(d[1], src[GCOMP]);
1414 UNCLAMPED_FLOAT_TO_USHORT(d[2], src[BCOMP]);
1415 UNCLAMPED_FLOAT_TO_USHORT(d[3], src[ACOMP]);
1425 pack_float_SIGNED_R8(const GLfloat src[4], void *dst)
1428 *d = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f));
1437 pack_float_SIGNED_RG88_REV(const GLfloat src[4], void *dst)
1440 GLbyte r = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f));
1441 GLbyte g = FLOAT_TO_BYTE(CLAMP(src[GCOMP], -1.0f, 1.0f));
1451 pack_float_SIGNED_RGBX8888(const GLfloat src[4], void *dst)
1454 GLbyte r = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f));
1455 GLbyte g = FLOAT_TO_BYTE(CLAMP(src[GCOMP], -1.0f, 1.0f));
1456 GLbyte b = FLOAT_TO_BYTE(CLAMP(src[BCOMP], -1.0f, 1.0f));
1467 pack_float_SIGNED_RGBA8888(const GLfloat src[4], void *dst)
1470 GLbyte r = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f));
1471 GLbyte g = FLOAT_TO_BYTE(CLAMP(src[GCOMP], -1.0f, 1.0f));
1472 GLbyte b = FLOAT_TO_BYTE(CLAMP(src[BCOMP], -1.0f, 1.0f));
1473 GLbyte a = FLOAT_TO_BYTE(CLAMP(src[ACOMP], -1.0f, 1.0f));
1483 src[4], void *dst)
1486 GLbyte r = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f));
1487 GLbyte g = FLOAT_TO_BYTE(CLAMP(src[GCOMP], -1.0f, 1.0f));
1488 GLbyte b = FLOAT_TO_BYTE(CLAMP(src[BCOMP], -1.0f, 1.0f));
1489 GLbyte a = FLOAT_TO_BYTE(CLAMP(src[ACOMP], -1.0f, 1.0f));
1499 pack_float_SIGNED_R16(const GLfloat src[4], void *dst)
1502 *d = FLOAT_TO_SHORT(CLAMP(src[RCOMP], -1.0f, 1.0f));
1511 pack_float_SIGNED_GR1616(const GLfloat src[4], void *dst)
1514 GLshort r = FLOAT_TO_SHORT(CLAMP(src[RCOMP], -1.0f, 1.0f));
1515 GLshort g = FLOAT_TO_SHORT(CLAMP(src[GCOMP], -1.0f, 1.0f));
1525 pack_float_SIGNED_RGB_16(const GLfloat src[4], void *dst)
1528 d[0] = FLOAT_TO_SHORT(CLAMP(src[RCOMP], -1.0f, 1.0f));
1529 d[1] = FLOAT_TO_SHORT(CLAMP(src[GCOMP], -1.0f, 1.0f));
1530 d[2] = FLOAT_TO_SHORT(CLAMP(src[BCOMP], -1.0f, 1.0f));
1539 pack_float_SIGNED_RGBA_16(const GLfloat src[4], void *dst)
1542 d[0] = FLOAT_TO_SHORT(CLAMP(src[RCOMP], -1.0f, 1.0f));
1543 d[1] = FLOAT_TO_SHORT(CLAMP(src[GCOMP], -1.0f, 1.0f));
1544 d[2] = FLOAT_TO_SHORT(CLAMP(src[BCOMP], -1.0f, 1.0f));
1545 d[3] = FLOAT_TO_SHORT(CLAMP(src[ACOMP], -1.0f, 1.0f));
1554 pack_float_SIGNED_A8(const GLfloat src[4], void *dst)
1557 *d = FLOAT_TO_BYTE(CLAMP(src[ACOMP], -1.0f, 1.0f));
1566 pack_float_SIGNED_L8(const GLfloat src[4], void *dst)
1569 *d = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f));
1578 pack_float_SIGNED_AL88(const GLfloat src[4], void *dst)
1581 GLbyte l = FLOAT_TO_BYTE(CLAMP(src[RCOMP], -1.0f, 1.0f));
1582 GLbyte a = FLOAT_TO_BYTE(CLAMP(src[ACOMP], -1.0f, 1.0f));
1592 pack_float_SIGNED_A16(const GLfloat src[4], void *dst)
1595 *d = FLOAT_TO_SHORT(CLAMP(src[ACOMP], -1.0f, 1.0f));
1604 pack_float_SIGNED_L16(const GLfloat src[4], void *dst)
1607 *d = FLOAT_TO_SHORT(CLAMP(src[RCOMP], -1.0f, 1.0f));
1616 pack_float_SIGNED_AL1616(const GLfloat src[4], void *dst)
1619 GLshort l = FLOAT_TO_SHORT(CLAMP(src[RCOMP], -1.0f, 1.0f));
1620 GLshort a = FLOAT_TO_SHORT(CLAMP(src[ACOMP], -1.0f, 1.0f));
1630 pack_float_RGB9_E5_FLOAT(const GLfloat src[4], void *dst)
1633 *d = float3_to_rgb9e5(src);
1637 pack_ubyte_RGB9_E5_FLOAT(const GLubyte src[4], void *dst)
1641 rgb[0] = UBYTE_TO_FLOAT(src[RCOMP]);
1642 rgb[1] = UBYTE_TO_FLOAT(src[GCOMP]);
1643 rgb[2] = UBYTE_TO_FLOAT(src[BCOMP]);
1654 pack_ubyte_R11_G11_B10_FLOAT(const GLubyte src[4], void *dst)
1658 rgb[0] = UBYTE_TO_FLOAT(src[RCOMP]);
1659 rgb[1] = UBYTE_TO_FLOAT(src[GCOMP]);
1660 rgb[2] = UBYTE_TO_FLOAT(src[BCOMP]);
1665 pack_float_R11_G11_B10_FLOAT(const GLfloat src[4], void *dst)
1668 *d = float3_to_r11g11b10f(src);
2031 const GLfloat src[][4], void *dst)
2036 packrow(n, src, dst);
2050 pack(src[i], dstPtr);
2062 const GLubyte src[][4], void *dst)
2067 packrow(n, src, dst);
2081 pack(src[i], d);
2095 const GLubyte *src, GLint srcRowStride,
2106 packrow(width * height, (const GLubyte (*)[4]) src, dst);
2111 packrow(width, (const GLubyte (*)[4]) src, dstUB);
2112 src += srcRowStride;
2121 (const GLubyte (*)[4]) src, dstUB);
2122 src += srcRowStride;
2135 pack_float_z_Z24_S8(const GLfloat *src, void *dst)
2141 GLuint z = (GLuint) (*src * scale);
2147 pack_float_z_S8_Z24(const GLfloat *src, void *dst)
2153 GLuint z = (GLuint) (*src * scale);
2159 pack_float_z_Z16(const GLfloat *src, void *dst)
2163 *d = (GLushort) (*src * scale);
2167 pack_float_z_Z32(const GLfloat *src, void *dst)
2171 *d = (GLuint) (*src * scale);
2175 pack_float_z_Z32_FLOAT(const GLfloat *src, void *dst)
2178 *d = *src;
2208 ** Pack uint Z pixels. The incoming src value is always in
2213 pack_uint_z_Z24_S8(const GLuint *src, void *dst)
2218 GLuint z = *src & 0xffffff00;
2223 pack_uint_z_S8_Z24(const GLuint *src, void *dst)
2228 GLuint z = *src >> 8;
2233 pack_uint_z_Z16(const GLuint *src, void *dst)
2236 *d = *src >> 16;
2240 pack_uint_z_Z32(const GLuint *src, void *dst)
2243 *d = *src;
2247 pack_uint_z_Z32_FLOAT(const GLuint *src, void *dst)
2251 *d = *src * scale;
2257 pack_uint_z_Z32_FLOAT_X24S8(const GLuint *src, void *dst)
2261 *d = *src * scale;
2296 pack_ubyte_stencil_Z24_S8(const GLubyte *src, void *dst)
2300 GLuint s = *src;
2306 pack_ubyte_stencil_S8_Z24(const GLubyte *src, void *dst)
2310 GLuint s = *src << 24;
2316 pack_ubyte_stencil_S8(const GLubyte *src, void *dst)
2319 *d = *src;
2323 pack_ubyte_stencil_Z32_FLOAT_X24S8(const GLubyte *src, void *dst)
2326 d[1] = *src;
2353 const GLfloat *src, void *dst)
2365 GLuint z = (GLuint) (src[i] * scale);
2380 GLuint z = (GLuint) (src[i] * scale);
2392 d[i] = (GLushort) (src[i] * scale);
2402 d[i] = (GLuint) (src[i] * scale);
2407 memcpy(dst, src, n * sizeof(GLfloat));
2414 d[i].z = src[i];
2429 const GLuint *src, void *dst)
2440 GLuint z = src[i] & 0xffffff00;
2453 GLuint z = src[i] >> 8;
2463 d[i] = src[i] >> 16;
2468 memcpy(dst, src, n * sizeof(GLfloat));
2476 d[i] = src[i] * scale;
2488 d[i].z = src[i] * scale;
2502 const GLubyte *src, void *dst)
2511 GLuint s = src[i];
2523 GLuint s = src[i] << 24;
2530 memcpy(dst, src, n * sizeof(GLubyte));
2537 d[i].x24s8 = src[i];
2552 const GLuint *src, void *dst)
2556 memcpy(dst, src, n * sizeof(GLuint));
2563 GLuint s = src[i] << 24;
2564 GLuint z = src[i] >> 8;
2575 GLfloat z = (src[i] >> 8) * scale;
2577 d[i].x24s8 = src[i];