Home | History | Annotate | Download | only in main

Lines Matching refs:dstFormat

927                gl_format dstFormat,
941 const GLuint texelBytes = _mesa_get_format_bytes(dstFormat);
994 _mesa_pack_ubyte_rgba_rect(dstFormat, srcWidth, srcHeight,
1016 ASSERT(dstFormat == MESA_FORMAT_Z32 ||
1017 dstFormat == MESA_FORMAT_Z32_FLOAT);
1018 ASSERT(_mesa_get_format_bytes(dstFormat) == sizeof(GLuint));
1020 if (dstFormat == MESA_FORMAT_Z32)
1033 dstFormat,
1066 ASSERT(dstFormat == MESA_FORMAT_X8_Z24);
1096 ASSERT(dstFormat == MESA_FORMAT_Z24_X8);
1129 ASSERT(dstFormat == MESA_FORMAT_Z16);
1130 ASSERT(_mesa_get_format_bytes(dstFormat) == sizeof(GLushort));
1140 dstFormat,
1171 ASSERT(dstFormat == MESA_FORMAT_RGB565 ||
1172 dstFormat == MESA_FORMAT_RGB565_REV);
1173 ASSERT(_mesa_get_format_bytes(dstFormat) == 2);
1177 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
1181 dstFormat,
1204 if (dstFormat == MESA_FORMAT_RGB565) {
1222 dstFormat, dstRowStride, dstSlices,
1238 ASSERT(dstFormat == MESA_FORMAT_RGBA8888 ||
1239 dstFormat == MESA_FORMAT_RGBA8888_REV ||
1240 dstFormat == MESA_FORMAT_RGBX8888 ||
1241 dstFormat == MESA_FORMAT_RGBX8888_REV);
1242 ASSERT(_mesa_get_format_bytes(dstFormat) == 4);
1246 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
1250 dstFormat,
1266 if ((littleEndian && (dstFormat == MESA_FORMAT_RGBA8888 ||
1267 dstFormat == MESA_FORMAT_RGBX8888)) ||
1268 (!littleEndian && (dstFormat == MESA_FORMAT_RGBA8888_REV ||
1269 dstFormat == MESA_FORMAT_RGBX8888_REV))) {
1293 dstFormat, dstRowStride, dstSlices,
1306 ASSERT(dstFormat == MESA_FORMAT_ARGB8888 ||
1307 dstFormat == MESA_FORMAT_ARGB8888_REV ||
1308 dstFormat == MESA_FORMAT_XRGB8888 ||
1309 dstFormat == MESA_FORMAT_XRGB8888_REV );
1310 ASSERT(_mesa_get_format_bytes(dstFormat) == 4);
1314 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
1318 dstFormat,
1325 (dstFormat == MESA_FORMAT_ARGB8888 ||
1326 dstFormat == MESA_FORMAT_XRGB8888) &&
1353 dstFormat == MESA_FORMAT_ARGB8888 &&
1379 dstFormat == MESA_FORMAT_ARGB8888 &&
1421 if ((littleEndian && dstFormat == MESA_FORMAT_ARGB8888) ||
1422 (littleEndian && dstFormat == MESA_FORMAT_XRGB8888) ||
1423 (!littleEndian && dstFormat == MESA_FORMAT_ARGB8888_REV) ||
1424 (!littleEndian && dstFormat == MESA_FORMAT_XRGB8888_REV)) {
1431 assert((littleEndian && dstFormat == MESA_FORMAT_ARGB8888_REV) ||
1432 (!littleEndian && dstFormat == MESA_FORMAT_ARGB8888) ||
1433 (littleEndian && dstFormat == MESA_FORMAT_XRGB8888_REV) ||
1434 (!littleEndian && dstFormat == MESA_FORMAT_XRGB8888));
1453 dstFormat, dstRowStride, dstSlices,
1464 ASSERT(dstFormat == MESA_FORMAT_RGB888);
1465 ASSERT(_mesa_get_format_bytes(dstFormat) == 3);
1469 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
1473 dstFormat,
1526 dstFormat, dstRowStride, dstSlices,
1537 ASSERT(dstFormat == MESA_FORMAT_BGR888);
1538 ASSERT(_mesa_get_format_bytes(dstFormat) == 3);
1542 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
1546 dstFormat,
1599 dstFormat, dstRowStride, dstSlices,
1610 ASSERT(dstFormat == MESA_FORMAT_ARGB4444 ||
1611 dstFormat == MESA_FORMAT_ARGB4444_REV);
1612 ASSERT(_mesa_get_format_bytes(dstFormat) == 2);
1616 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
1620 dstFormat,
1627 dstFormat, dstRowStride, dstSlices,
1637 ASSERT(dstFormat == MESA_FORMAT_RGBA5551);
1638 ASSERT(_mesa_get_format_bytes(dstFormat) == 2);
1642 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
1646 dstFormat,
1653 dstFormat, dstRowStride, dstSlices,
1663 ASSERT(dstFormat == MESA_FORMAT_ARGB1555 ||
1664 dstFormat == MESA_FORMAT_ARGB1555_REV);
1665 ASSERT(_mesa_get_format_bytes(dstFormat) == 2);
1669 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
1673 dstFormat,
1680 dstFormat, dstRowStride, dstSlices,
1691 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
1693 ASSERT(dstFormat == MESA_FORMAT_ARGB2101010);
1694 ASSERT(_mesa_get_format_bytes(dstFormat) == 4);
1698 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
1702 dstFormat,
1767 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
1769 ASSERT(dstFormat == MESA_FORMAT_AL44);
1770 ASSERT(_mesa_get_format_bytes(dstFormat) == 1);
1810 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
1812 ASSERT(dstFormat == MESA_FORMAT_AL88 ||
1813 dstFormat == MESA_FORMAT_AL88_REV ||
1814 dstFormat == MESA_FORMAT_GR88 ||
1815 dstFormat == MESA_FORMAT_RG88);
1816 ASSERT(_mesa_get_format_bytes(dstFormat) == 2);
1820 ((dstFormat == MESA_FORMAT_AL88 &&
1823 (dstFormat == MESA_FORMAT_GR88 &&
1829 dstFormat,
1843 if (dstFormat == MESA_FORMAT_AL88 || dstFormat == MESA_FORMAT_AL88_REV) {
1844 if ((littleEndian && dstFormat == MESA_FORMAT_AL88) ||
1845 (!littleEndian && dstFormat == MESA_FORMAT_AL88_REV)) {
1855 if ((littleEndian && dstFormat == MESA_FORMAT_GR88) ||
1856 (!littleEndian && dstFormat == MESA_FORMAT_RG88)) {
1893 if (dstFormat == MESA_FORMAT_AL88 ||
1894 dstFormat == MESA_FORMAT_GR88) {
1926 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
1928 ASSERT(dstFormat == MESA_FORMAT_AL1616 ||
1929 dstFormat == MESA_FORMAT_AL1616_REV ||
1930 dstFormat == MESA_FORMAT_RG1616 ||
1931 dstFormat == MESA_FORMAT_RG1616_REV);
1932 ASSERT(_mesa_get_format_bytes(dstFormat) == 4);
1936 ((dstFormat == MESA_FORMAT_AL1616 &&
1939 (dstFormat == MESA_FORMAT_RG1616 &&
1945 dstFormat,
1967 if (dstFormat == MESA_FORMAT_AL1616 ||
1968 dstFormat == MESA_FORMAT_RG1616) {
2002 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
2004 ASSERT(dstFormat == MESA_FORMAT_R16 ||
2005 dstFormat == MESA_FORMAT_A16 ||
2006 dstFormat == MESA_FORMAT_L16 ||
2007 dstFormat == MESA_FORMAT_I16);
2008 ASSERT(_mesa_get_format_bytes(dstFormat) == 2);
2017 dstFormat,
2058 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
2060 ASSERT(dstFormat == MESA_FORMAT_RGBA_16);
2061 ASSERT(_mesa_get_format_bytes(dstFormat) == 8);
2070 dstFormat,
2117 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
2119 ASSERT(dstFormat == MESA_FORMAT_SIGNED_RGB_16 ||
2120 dstFormat == MESA_FORMAT_SIGNED_RGBA_16);
2125 dstFormat == MESA_FORMAT_SIGNED_RGBA_16 &&
2130 dstFormat,
2145 const GLuint comps = _mesa_get_format_bytes(dstFormat) / 2;
2158 if (dstFormat == MESA_FORMAT_SIGNED_RGBA_16) {
2192 ASSERT(dstFormat == MESA_FORMAT_RGB332);
2193 ASSERT(_mesa_get_format_bytes(dstFormat) == 1);
2197 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
2201 dstFormat,
2208 dstFormat, dstRowStride, dstSlices,
2222 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
2224 ASSERT(dstFormat == MESA_FORMAT_A8 ||
2225 dstFormat == MESA_FORMAT_L8 ||
2226 dstFormat == MESA_FORMAT_I8 ||
2227 dstFormat == MESA_FORMAT_R8);
2228 ASSERT(_mesa_get_format_bytes(dstFormat) == 1);
2236 dstFormat,
2249 if (dstFormat == MESA_FORMAT_A8) {
2307 ASSERT((dstFormat == MESA_FORMAT_YCBCR) ||
2308 (dstFormat == MESA_FORMAT_YCBCR_REV));
2309 ASSERT(_mesa_get_format_bytes(dstFormat) == 2);
2318 dstFormat,
2327 (dstFormat == MESA_FORMAT_YCBCR_REV) ^
2345 const GLuint texelBytes = _mesa_get_format_bytes(dstFormat);
2347 ASSERT(dstFormat == MESA_FORMAT_DUDV8);
2358 dstFormat,
2434 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
2436 ASSERT(dstFormat == MESA_FORMAT_SIGNED_A8 ||
2437 dstFormat == MESA_FORMAT_SIGNED_L8 ||
2438 dstFormat == MESA_FORMAT_SIGNED_I8 ||
2439 dstFormat == MESA_FORMAT_SIGNED_R8);
2440 ASSERT(_mesa_get_format_bytes(dstFormat) == 1);
2448 dstFormat,
2489 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
2491 ASSERT(dstFormat == MESA_FORMAT_SIGNED_AL88 ||
2492 dstFormat == MESA_FORMAT_SIGNED_RG88_REV);
2493 ASSERT(_mesa_get_format_bytes(dstFormat) == 2);
2502 dstFormat,
2543 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
2545 ASSERT(dstFormat == MESA_FORMAT_SIGNED_R16 ||
2546 dstFormat == MESA_FORMAT_SIGNED_A16 ||
2547 dstFormat == MESA_FORMAT_SIGNED_L16 ||
2548 dstFormat == MESA_FORMAT_SIGNED_I16);
2549 ASSERT(_mesa_get_format_bytes(dstFormat) == 2);
2558 dstFormat,
2602 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
2604 ASSERT(dstFormat == MESA_FORMAT_SIGNED_AL1616 ||
2605 dstFormat == MESA_FORMAT_SIGNED_GR1616);
2606 ASSERT(_mesa_get_format_bytes(dstFormat) == 4);
2615 dstFormat,
2661 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
2663 ASSERT(dstFormat == MESA_FORMAT_SIGNED_RGBX8888);
2664 ASSERT(_mesa_get_format_bytes(dstFormat) == 4);
2708 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
2710 ASSERT(dstFormat == MESA_FORMAT_SIGNED_RGBA8888 ||
2711 dstFormat == MESA_FORMAT_SIGNED_RGBA8888_REV);
2712 ASSERT(_mesa_get_format_bytes(dstFormat) == 4);
2716 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
2720 dstFormat,
2742 if (dstFormat == MESA_FORMAT_SIGNED_RGBA8888) {
2782 ASSERT(dstFormat == MESA_FORMAT_Z24_S8);
2793 dstFormat,
2876 ASSERT(dstFormat == MESA_FORMAT_S8_Z24);
2952 ASSERT(dstFormat == MESA_FORMAT_S8);
2961 dstFormat,
3019 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3022 ASSERT(dstFormat == MESA_FORMAT_RGBA_FLOAT32 ||
3023 dstFormat == MESA_FORMAT_RGB_FLOAT32 ||
3024 dstFormat == MESA_FORMAT_ALPHA_FLOAT32 ||
3025 dstFormat == MESA_FORMAT_LUMINANCE_FLOAT32 ||
3026 dstFormat == MESA_FORMAT_LUMINANCE_ALPHA_FLOAT32 ||
3027 dstFormat == MESA_FORMAT_INTENSITY_FLOAT32 ||
3028 dstFormat == MESA_FORMAT_R_FLOAT32 ||
3029 dstFormat == MESA_FORMAT_RG_FLOAT32);
3038 ASSERT(_mesa_get_format_bytes(dstFormat) == components * sizeof(GLfloat));
3047 dstFormat,
3089 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3092 ASSERT(dstFormat == MESA_FORMAT_RGBA_FLOAT16 ||
3093 dstFormat == MESA_FORMAT_RGB_FLOAT16 ||
3094 dstFormat == MESA_FORMAT_ALPHA_FLOAT16 ||
3095 dstFormat == MESA_FORMAT_LUMINANCE_FLOAT16 ||
3096 dstFormat == MESA_FORMAT_LUMINANCE_ALPHA_FLOAT16 ||
3097 dstFormat == MESA_FORMAT_INTENSITY_FLOAT16 ||
3098 dstFormat == MESA_FORMAT_R_FLOAT16 ||
3099 dstFormat == MESA_FORMAT_RG_FLOAT16);
3108 ASSERT(_mesa_get_format_bytes(dstFormat) == components * sizeof(GLhalfARB));
3117 dstFormat,
3158 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3161 ASSERT(dstFormat == MESA_FORMAT_R_INT8 ||
3162 dstFormat == MESA_FORMAT_RG_INT8 ||
3163 dstFormat == MESA_FORMAT_RGB_INT8 ||
3164 dstFormat == MESA_FORMAT_RGBA_INT8 ||
3165 dstFormat == MESA_FORMAT_ALPHA_INT8 ||
3166 dstFormat == MESA_FORMAT_INTENSITY_INT8 ||
3167 dstFormat == MESA_FORMAT_LUMINANCE_INT8 ||
3168 dstFormat == MESA_FORMAT_LUMINANCE_ALPHA_INT8);
3177 ASSERT(_mesa_get_format_bytes(dstFormat) == components * sizeof(GLbyte));
3187 dstFormat,
3235 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3238 ASSERT(dstFormat == MESA_FORMAT_R_INT16 ||
3239 dstFormat == MESA_FORMAT_RG_INT16 ||
3240 dstFormat == MESA_FORMAT_RGB_INT16 ||
3241 dstFormat == MESA_FORMAT_RGBA_INT16 ||
3242 dstFormat == MESA_FORMAT_ALPHA_INT16 ||
3243 dstFormat == MESA_FORMAT_LUMINANCE_INT16 ||
3244 dstFormat == MESA_FORMAT_INTENSITY_INT16 ||
3245 dstFormat == MESA_FORMAT_LUMINANCE_ALPHA_INT16);
3254 ASSERT(_mesa_get_format_bytes(dstFormat) == components * sizeof(GLshort));
3264 dstFormat,
3312 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3315 ASSERT(dstFormat == MESA_FORMAT_R_INT32 ||
3316 dstFormat == MESA_FORMAT_RG_INT32 ||
3317 dstFormat == MESA_FORMAT_RGB_INT32 ||
3318 dstFormat == MESA_FORMAT_RGBA_INT32 ||
3319 dstFormat == MESA_FORMAT_ALPHA_INT32 ||
3320 dstFormat == MESA_FORMAT_INTENSITY_INT32 ||
3321 dstFormat == MESA_FORMAT_LUMINANCE_INT32 ||
3322 dstFormat == MESA_FORMAT_LUMINANCE_ALPHA_INT32);
3331 ASSERT(_mesa_get_format_bytes(dstFormat) == components * sizeof(GLint));
3341 dstFormat,
3389 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3392 ASSERT(dstFormat == MESA_FORMAT_R_UINT8 ||
3393 dstFormat == MESA_FORMAT_RG_UINT8 ||
3394 dstFormat == MESA_FORMAT_RGB_UINT8 ||
3395 dstFormat == MESA_FORMAT_RGBA_UINT8 ||
3396 dstFormat == MESA_FORMAT_ALPHA_UINT8 ||
3397 dstFormat == MESA_FORMAT_INTENSITY_UINT8 ||
3398 dstFormat == MESA_FORMAT_LUMINANCE_UINT8 ||
3399 dstFormat == MESA_FORMAT_LUMINANCE_ALPHA_UINT8);
3408 ASSERT(_mesa_get_format_bytes(dstFormat) == components * sizeof(GLubyte));
3418 dstFormat,
3463 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3466 ASSERT(dstFormat == MESA_FORMAT_R_UINT16 ||
3467 dstFormat == MESA_FORMAT_RG_UINT16 ||
3468 dstFormat == MESA_FORMAT_RGB_UINT16 ||
3469 dstFormat == MESA_FORMAT_RGBA_UINT16 ||
3470 dstFormat == MESA_FORMAT_ALPHA_UINT16 ||
3471 dstFormat == MESA_FORMAT_INTENSITY_UINT16 ||
3472 dstFormat == MESA_FORMAT_LUMINANCE_UINT16 ||
3473 dstFormat == MESA_FORMAT_LUMINANCE_ALPHA_UINT16);
3482 ASSERT(_mesa_get_format_bytes(dstFormat) == components * sizeof(GLushort));
3492 dstFormat,
3537 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3540 ASSERT(dstFormat == MESA_FORMAT_R_UINT32 ||
3541 dstFormat == MESA_FORMAT_RG_UINT32 ||
3542 dstFormat == MESA_FORMAT_RGB_UINT32 ||
3543 dstFormat == MESA_FORMAT_RGBA_UINT32 ||
3544 dstFormat == MESA_FORMAT_ALPHA_UINT32 ||
3545 dstFormat == MESA_FORMAT_INTENSITY_UINT32 ||
3546 dstFormat == MESA_FORMAT_LUMINANCE_UINT32 ||
3547 dstFormat == MESA_FORMAT_LUMINANCE_ALPHA_UINT32);
3556 ASSERT(_mesa_get_format_bytes(dstFormat) == components * sizeof(GLuint));
3566 dstFormat,
3616 ASSERT(dstFormat == MESA_FORMAT_SRGB8);
3637 ASSERT(dstFormat == MESA_FORMAT_SRGBA8);
3657 ASSERT(dstFormat == MESA_FORMAT_SARGB8);
3678 ASSERT(dstFormat == MESA_FORMAT_SL8);
3699 ASSERT(dstFormat == MESA_FORMAT_SLA8);
3727 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3729 ASSERT(dstFormat == MESA_FORMAT_RGB9_E5_FLOAT);
3733 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
3737 dstFormat,
3775 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3777 ASSERT(dstFormat == MESA_FORMAT_R11_G11_B10_FLOAT);
3781 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
3785 dstFormat,
3824 ASSERT(dstFormat == MESA_FORMAT_Z32_FLOAT_X24S8);
3837 dstFormat,
3886 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3888 ASSERT(dstFormat == MESA_FORMAT_ARGB2101010_UINT);
3889 ASSERT(_mesa_get_format_bytes(dstFormat) == 4);
3892 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
3896 dstFormat,
3952 const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
3954 ASSERT(dstFormat == MESA_FORMAT_ABGR2101010_UINT);
3955 ASSERT(_mesa_get_format_bytes(dstFormat) == 4);
3958 _mesa_format_matches_format_and_type(dstFormat, srcFormat, srcType,
3962 dstFormat,
4020 (void) dstFormat;
4228 storeImage = _mesa_get_texstore_func(dstFormat);
4231 dstFormat,