dri: Drop _dri_texformats that just obfuscate MESA_FORMAT names.
authorEric Anholt <eric@anholt.net>
Fri, 14 Oct 2011 18:17:39 +0000 (11:17 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 28 Oct 2011 18:19:14 +0000 (11:19 -0700)
The remaining _dri_texformats are the ones that are variable depending
on the endianness of the system.

src/mesa/drivers/dri/common/texmem.c
src/mesa/drivers/dri/common/texmem.h
src/mesa/drivers/dri/radeon/radeon_texture.c

index 798ef1ee88138afbd14cf54205ca0863117e0cb8..b36dcdc3b83e63c8ee6d1d384735f3fcb4e8f19e 100644 (file)
@@ -1309,9 +1309,6 @@ gl_format _dri_texformat_rgb565 = MESA_FORMAT_NONE;
 gl_format _dri_texformat_argb4444 = MESA_FORMAT_NONE;
 gl_format _dri_texformat_argb1555 = MESA_FORMAT_NONE;
 gl_format _dri_texformat_al88 = MESA_FORMAT_NONE;
-gl_format _dri_texformat_a8 = MESA_FORMAT_A8;
-gl_format _dri_texformat_i8 = MESA_FORMAT_I8;
-gl_format _dri_texformat_l8 = MESA_FORMAT_L8;
 /*@}*/
 
 
index 6dd07b8a1dabedf57e20fd81a713cfc92fab338d..00a02b318c820a61789d8afdebc42d69b3036cbb 100644 (file)
@@ -324,10 +324,6 @@ extern gl_format _dri_texformat_rgb565;
 extern gl_format _dri_texformat_argb4444;
 extern gl_format _dri_texformat_argb1555;
 extern gl_format _dri_texformat_al88;
-extern gl_format _dri_texformat_a8;
-extern gl_format _dri_texformat_ci8;
-extern gl_format _dri_texformat_i8;
-extern gl_format _dri_texformat_l8;
 
 extern void driInitTextureFormats( void );
 
index 4f8daa72e84ebf92105b1a48bee53883c3a7a81b..557d6d457dc3232a42cb985f4b337a105c314ce2 100644 (file)
@@ -501,7 +501,7 @@ gl_format radeonChooseTextureFormat(struct gl_context * ctx,
                if (IS_R200_CLASS(rmesa->radeonScreen))
                        return _dri_texformat_al88;
                else
-                       return _dri_texformat_a8;
+                       return MESA_FORMAT_A8;
        case 1:
        case GL_LUMINANCE:
        case GL_LUMINANCE4:
@@ -509,7 +509,7 @@ gl_format radeonChooseTextureFormat(struct gl_context * ctx,
        case GL_LUMINANCE12:
        case GL_LUMINANCE16:
        case GL_COMPRESSED_LUMINANCE:
-               return _dri_texformat_l8;
+               return MESA_FORMAT_L8;
 
        case 2:
        case GL_LUMINANCE_ALPHA:
@@ -528,7 +528,7 @@ gl_format radeonChooseTextureFormat(struct gl_context * ctx,
        case GL_INTENSITY12:
        case GL_INTENSITY16:
        case GL_COMPRESSED_INTENSITY:
-               return _dri_texformat_i8;
+               return MESA_FORMAT_I8;
 
        case GL_YCBCR_MESA:
                if (type == GL_UNSIGNED_SHORT_8_8_APPLE ||