0, 0, 0, 0, 8, /* Lum/Int/Index/Depth/StencilBits */
1, 1, 1 /* BlockWidth/Height,Bytes */
},
-
-#if FEATURE_EXT_texture_sRGB
{
MESA_FORMAT_SRGB8,
GL_RGB,
8, 0, 0, 0, 0,
1, 1, 2
},
-#if FEATURE_texture_s3tc
{
MESA_FORMAT_SRGB_DXT1, /* Name */
GL_RGB, /* BaseFormat */
0, 0, 0, 0, 0,
4, 4, 16 /* 16 bytes per 4x4 block */
},
-#endif
-#endif
-#if FEATURE_texture_fxt1
{
MESA_FORMAT_RGB_FXT1,
GL_RGB,
0, 0, 0, 0, 0,
8, 4, 16 /* 16 bytes per 8x4 block */
},
-#endif
-#if FEATURE_texture_s3tc
{
MESA_FORMAT_RGB_DXT1, /* Name */
GL_RGB, /* BaseFormat */
0, 0, 0, 0, 0,
4, 4, 16 /* 16 bytes per 4x4 block */
},
-#endif
-
{
MESA_FORMAT_RGBA_FLOAT32,
GL_RGBA,
0, 16, 0, 0, 0,
1, 1, 2
},
-
{
MESA_FORMAT_DUDV8,
GL_DUDV_ATI,
0, 0, 0, 0, 0,
1, 1, 2
},
-
{
MESA_FORMAT_SIGNED_RGBA8888,
GL_RGBA,
MESA_FORMAT_S8, /* SSSS SSSS */
/*@}*/
-#if FEATURE_EXT_texture_sRGB
/**
* \name 8-bit/channel sRGB formats
*/
MESA_FORMAT_SARGB8,
MESA_FORMAT_SL8,
MESA_FORMAT_SLA8,
-#if FEATURE_texture_s3tc
MESA_FORMAT_SRGB_DXT1,
MESA_FORMAT_SRGBA_DXT1,
MESA_FORMAT_SRGBA_DXT3,
MESA_FORMAT_SRGBA_DXT5,
-#endif
/*@}*/
-#endif
/**
* \name Compressed texture formats.
*/
/*@{*/
-#if FEATURE_texture_fxt1
MESA_FORMAT_RGB_FXT1,
MESA_FORMAT_RGBA_FXT1,
-#endif
-#if FEATURE_texture_s3tc
MESA_FORMAT_RGB_DXT1,
MESA_FORMAT_RGBA_DXT1,
MESA_FORMAT_RGBA_DXT3,
MESA_FORMAT_RGBA_DXT5,
-#endif
/*@}*/
/**
#include "texfetch.h"
-#if FEATURE_EXT_texture_sRGB
-
/**
* Convert an 8-bit sRGB value from non-linear space to a
* linear RGB value in [0, 1].
}
-#endif /* FEATURE_EXT_texture_sRGB */
-
/* Texel fetch routines for all supported formats
*/
#endif
-#if FEATURE_EXT_texture_sRGB
-
/* Fetch texel from 1D, 2D or 3D srgb8 texture, return 4 GLfloats */
/* Note: component order is same as for MESA_FORMAT_RGB888 */
static void FETCH(srgb8)(const struct gl_texture_image *texImage,
}
#endif
-#endif /* FEATURE_EXT_texture_sRGB */
-
/* MESA_FORMAT_DUDV8 ********************************************************/