mesa: Rename FreeTexImageData to FreeTextureImageBuffer.
authorEric Anholt <eric@anholt.net>
Wed, 27 Jul 2011 19:29:48 +0000 (12:29 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 29 Aug 2011 17:09:41 +0000 (10:09 -0700)
This was produced by sed, except for one hunk in driverfuncs.c where
trailing whitespace was dropped.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
17 files changed:
src/mesa/drivers/common/driverfuncs.c
src/mesa/drivers/dri/intel/intel_tex.c
src/mesa/drivers/dri/intel/intel_tex_image.c
src/mesa/drivers/dri/nouveau/nouveau_texture.c
src/mesa/drivers/dri/r200/r200_tex.c
src/mesa/drivers/dri/r300/r300_tex.c
src/mesa/drivers/dri/r600/evergreen_tex.c
src/mesa/drivers/dri/r600/r600_tex.c
src/mesa/drivers/dri/radeon/radeon_tex.c
src/mesa/drivers/dri/radeon/radeon_texture.c
src/mesa/drivers/dri/radeon/radeon_texture.h
src/mesa/main/context.c
src/mesa/main/dd.h
src/mesa/main/mipmap.c
src/mesa/main/teximage.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_gen_mipmap.c

index a6174ee2f56fa131abdee951003d90146e6ee22c..912231b1d37fd0d8db2181540ca1c490f5a4eac9 100644 (file)
@@ -111,7 +111,7 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
    driver->NewTextureObject = _mesa_new_texture_object;
    driver->DeleteTexture = _mesa_delete_texture_object;
    driver->NewTextureImage = _mesa_new_texture_image;
-   driver->FreeTexImageData = _mesa_free_texture_image_data; 
+   driver->FreeTextureImageBuffer = _mesa_free_texture_image_data;
    driver->MapTexture = NULL;
    driver->UnmapTexture = NULL;
    driver->TextureMemCpy = memcpy;
index ee0cd252375771d0d1a825049cb53f13037144c4..8744540f1ba2e3cca952be0e647788304f8f69cd 100644 (file)
@@ -123,5 +123,5 @@ intelInitTextureFuncs(struct dd_function_table *functions)
    functions->NewTextureObject = intelNewTextureObject;
    functions->NewTextureImage = intelNewTextureImage;
    functions->DeleteTexture = intelDeleteTextureObject;
-   functions->FreeTexImageData = intelFreeTextureImageData;
+   functions->FreeTextureImageBuffer = intelFreeTextureImageData;
 }
index 4ee668472559cf3a2b00b9d6d0208b543a8e62c9..4149f4510ef9c4ebcde4a53ab62efc2a72ede44f 100644 (file)
@@ -418,7 +418,7 @@ intelTexImage(struct gl_context * ctx,
       }
    }
 
-   ctx->Driver.FreeTexImageData(ctx, texImage);
+   ctx->Driver.FreeTextureImageBuffer(ctx, texImage);
    assert(!intelImage->mt);
 
    if (intelObj->mt &&
index dcfd316c49f4f2c24fc0c5f90215c51697365b32..df1467df69bf2dace69d6ce67f575d4cdd585ac4 100644 (file)
@@ -704,7 +704,7 @@ nouveau_texture_functions_init(struct dd_function_table *functions)
        functions->NewTextureObject = nouveau_texture_new;
        functions->DeleteTexture = nouveau_texture_free;
        functions->NewTextureImage = nouveau_teximage_new;
-       functions->FreeTexImageData = nouveau_teximage_free;
+       functions->FreeTextureImageBuffer = nouveau_teximage_free;
        functions->ChooseTextureFormat = nouveau_choose_tex_format;
        functions->TexImage1D = nouveau_teximage_1d;
        functions->TexImage2D = nouveau_teximage_2d;
index 91e77f9f7dae10a177e14383770ae72131dd7a7c..665d9e16ed7b4cbbd14b81299babb1984626c1aa 100644 (file)
@@ -533,7 +533,7 @@ void r200InitTextureFuncs( radeonContextPtr radeon, struct dd_function_table *fu
    functions->GenerateMipmap = radeonGenerateMipmap;
 
    functions->NewTextureImage = radeonNewTextureImage;
-   functions->FreeTexImageData = radeonFreeTexImageData;
+   functions->FreeTextureImageBuffer = radeonFreeTextureImageBuffer;
    functions->MapTexture = radeonMapTexture;
    functions->UnmapTexture = radeonUnmapTexture;
 
index 93d8fe185efbcdfb9104a1f3f0b9badec8cde1d9..9dff68c1b9a7767e4a97f17b5661615134d39b72 100644 (file)
@@ -356,7 +356,7 @@ void r300InitTextureFuncs(radeonContextPtr radeon, struct dd_function_table *fun
         * since _mesa_init_driver_functions() was already called.
         */
        functions->NewTextureImage = radeonNewTextureImage;
-       functions->FreeTexImageData = radeonFreeTexImageData;
+       functions->FreeTextureImageBuffer = radeonFreeTextureImageBuffer;
        functions->MapTexture = radeonMapTexture;
        functions->UnmapTexture = radeonUnmapTexture;
 
index d240a216817ffe120da61f8c76d4575966fa0ae1..b560ac4ea40a1cc1e43ecd8573a9bac77324a923 100644 (file)
@@ -1658,7 +1658,7 @@ void evergreenInitTextureFuncs(radeonContextPtr radeon, struct dd_function_table
         * since _mesa_init_driver_functions() was already called.
         */
        functions->NewTextureImage = radeonNewTextureImage;
-       functions->FreeTexImageData = radeonFreeTexImageData;
+       functions->FreeTextureImageBuffer = radeonFreeTextureImageBuffer;
        functions->MapTexture = radeonMapTexture;
        functions->UnmapTexture = radeonUnmapTexture;
 
index 3efa1d197fa461022823151869f53fc3b0d8863a..f1d704e41c172c1c8e138a61621aa01aab008f5b 100644 (file)
@@ -447,7 +447,7 @@ void r600InitTextureFuncs(radeonContextPtr radeon, struct dd_function_table *fun
         * since _mesa_init_driver_functions() was already called.
         */
        functions->NewTextureImage = radeonNewTextureImage;
-       functions->FreeTexImageData = radeonFreeTexImageData;
+       functions->FreeTextureImageBuffer = radeonFreeTextureImageBuffer;
        functions->MapTexture = radeonMapTexture;
        functions->UnmapTexture = radeonUnmapTexture;
 
index a0b5506ae76e66ff7af717f502f3ea49f205f232..bb83de53ac5035e3090447d6b2288e6738bc5769 100644 (file)
@@ -461,7 +461,7 @@ void radeonInitTextureFuncs( radeonContextPtr radeon, struct dd_function_table *
    functions->GenerateMipmap = radeonGenerateMipmap;
 
    functions->NewTextureImage = radeonNewTextureImage;
-   functions->FreeTexImageData = radeonFreeTexImageData;
+   functions->FreeTextureImageBuffer = radeonFreeTextureImageBuffer;
    functions->MapTexture = radeonMapTexture;
    functions->UnmapTexture = radeonUnmapTexture;
 
index ad7e4c146a44fdfe3ba30cb669d4556abf92b8c8..50cf564ad61871dada6ef1ad769f5110ba2a4719 100644 (file)
@@ -86,7 +86,7 @@ struct gl_texture_image *radeonNewTextureImage(struct gl_context *ctx)
 /**
  * Free memory associated with this texture image.
  */
-void radeonFreeTexImageData(struct gl_context *ctx, struct gl_texture_image *timage)
+void radeonFreeTextureImageBuffer(struct gl_context *ctx, struct gl_texture_image *timage)
 {
        radeon_texture_image* image = get_radeon_texture_image(timage);
 
@@ -791,7 +791,7 @@ static void radeon_teximage(
        t->validated = GL_FALSE;
 
        /* Mesa core only clears texImage->Data but not image->mt */
-       radeonFreeTexImageData(ctx, texImage);
+       radeonFreeTextureImageBuffer(ctx, texImage);
 
        if (!t->bo) {
                teximage_assign_miptree(rmesa, texObj, texImage, face, level);
@@ -1036,7 +1036,7 @@ void radeon_image_target_texture_2d(struct gl_context *ctx, GLenum target,
        if (image == NULL)
                return;
 
-       radeonFreeTexImageData(ctx, texImage);
+       radeonFreeTextureImageBuffer(ctx, texImage);
 
        texImage->Width = image->width;
        texImage->Height = image->height;
index 6fc06d967dd1ad8b2f9dbe1218b4b78396f19599..388512ab128df616efc7c42b162e744799bb56cc 100644 (file)
@@ -37,7 +37,7 @@
 void copy_rows(void* dst, GLuint dststride, const void* src, GLuint srcstride,
        GLuint numrows, GLuint rowsize);
 struct gl_texture_image *radeonNewTextureImage(struct gl_context *ctx);
-void radeonFreeTexImageData(struct gl_context *ctx, struct gl_texture_image *timage);
+void radeonFreeTextureImageBuffer(struct gl_context *ctx, struct gl_texture_image *timage);
 
 void radeon_teximage_map(radeon_texture_image *image, GLboolean write_enable);
 void radeon_teximage_unmap(radeon_texture_image *image);
index b83a5d621face445d4028ada220dc1a34c2839e5..0cf794735bb81f1fbbafd033040fd624da6823e1 100644 (file)
@@ -907,7 +907,7 @@ _mesa_initialize_context(struct gl_context *ctx,
 
    /*ASSERT(driverContext);*/
    assert(driverFunctions->NewTextureObject);
-   assert(driverFunctions->FreeTexImageData);
+   assert(driverFunctions->FreeTextureImageBuffer);
 
    ctx->API = api;
    ctx->Visual = *visual;
index fcf40ecf102be7b383b2d77d930737f45d4cff3d..3164ac87ef92c2e156059123b6e4d08fe65eb089 100644 (file)
@@ -479,7 +479,7 @@ struct dd_function_table {
    /** 
     * Called to free tImage->Data.
     */
-   void (*FreeTexImageData)( struct gl_context *ctx, struct gl_texture_image *tImage );
+   void (*FreeTextureImageBuffer)( struct gl_context *ctx, struct gl_texture_image *tImage );
 
    /** Map texture image data into user space */
    void (*MapTexture)( struct gl_context *ctx, struct gl_texture_object *tObj );
index 8a811cb722590adf265454b66e6de79585b7ee68..611f3755010d90d4bc43663c971a78c4069b3886 100644 (file)
@@ -1949,7 +1949,7 @@ generate_mipmap_uncompressed(struct gl_context *ctx, GLenum target,
 
       /* Free old image data */
       if (dstImage->Data)
-         ctx->Driver.FreeTexImageData(ctx, dstImage);
+         ctx->Driver.FreeTextureImageBuffer(ctx, dstImage);
 
       /* initialize new image */
       _mesa_init_teximage_fields(ctx, target, dstImage, dstWidth, dstHeight,
index a005d2935fa2f86f184057db93576ad1d7db8f43..8fdebad194063be408f91b1937430536746dadb6 100644 (file)
@@ -595,7 +595,7 @@ _mesa_new_texture_image( struct gl_context *ctx )
 
 /**
  * Free texture image data.
- * This function is a fallback called via ctx->Driver.FreeTexImageData().
+ * This function is a fallback called via ctx->Driver.FreeTextureImageBuffer().
  *
  * \param texImage texture image.
  *
@@ -630,8 +630,8 @@ _mesa_delete_texture_image(struct gl_context *ctx,
    /* Free texImage->Data and/or any other driver-specific texture
     * image storage.
     */
-   ASSERT(ctx->Driver.FreeTexImageData);
-   ctx->Driver.FreeTexImageData( ctx, texImage );
+   ASSERT(ctx->Driver.FreeTextureImageBuffer);
+   ctx->Driver.FreeTextureImageBuffer( ctx, texImage );
 
    ASSERT(texImage->Data == NULL);
    if (texImage->ImageOffsets)
@@ -1211,7 +1211,7 @@ void
 _mesa_clear_texture_image(struct gl_context *ctx,
                           struct gl_texture_image *texImage)
 {
-   ctx->Driver.FreeTexImageData(ctx, texImage);
+   ctx->Driver.FreeTextureImageBuffer(ctx, texImage);
    clear_teximage_fields(texImage);
 }
 
@@ -2457,7 +2457,7 @@ teximage(struct gl_context *ctx, GLuint dims,
             gl_format texFormat;
 
             if (texImage->Data) {
-               ctx->Driver.FreeTexImageData( ctx, texImage );
+               ctx->Driver.FreeTextureImageBuffer( ctx, texImage );
             }
 
             ASSERT(texImage->Data == NULL);
@@ -2598,7 +2598,7 @@ _mesa_EGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image)
       _mesa_error(ctx, GL_OUT_OF_MEMORY, "glEGLImageTargetTexture2D");
    } else {
       if (texImage->Data)
-        ctx->Driver.FreeTexImageData( ctx, texImage );
+        ctx->Driver.FreeTextureImageBuffer( ctx, texImage );
 
       ASSERT(texImage->Data == NULL);
       ctx->Driver.EGLImageTargetTexture2D(ctx, target,
@@ -2804,7 +2804,7 @@ copyteximage(struct gl_context *ctx, GLuint dims,
             GLint srcX = x, srcY = y, dstX = 0, dstY = 0;
 
             /* Free old texture image */
-            ctx->Driver.FreeTexImageData(ctx, texImage);
+            ctx->Driver.FreeTextureImageBuffer(ctx, texImage);
 
             _mesa_init_teximage_fields(ctx, target, texImage, width, height, 1,
                                        border, internalFormat, texFormat);
@@ -3363,7 +3363,7 @@ compressedteximage(struct gl_context *ctx, GLuint dims,
             gl_format texFormat;
 
             if (texImage->Data) {
-               ctx->Driver.FreeTexImageData( ctx, texImage );
+               ctx->Driver.FreeTextureImageBuffer( ctx, texImage );
             }
             ASSERT(texImage->Data == NULL);
 
index a3b2ba9e78d9149e03bcb5f533c0f73a86caf4d6..4053f22c32e8d9b9602ca2d139d0b6ed6db5f2a6 100644 (file)
@@ -142,7 +142,7 @@ st_DeleteTextureObject(struct gl_context *ctx,
 }
 
 
-/** called via ctx->Driver.FreeTexImageData() */
+/** called via ctx->Driver.FreeTextureImageBuffer() */
 static void
 st_FreeTextureImageData(struct gl_context * ctx, struct gl_texture_image *texImage)
 {
@@ -1880,7 +1880,7 @@ st_init_texture_functions(struct dd_function_table *functions)
    functions->NewTextureObject = st_NewTextureObject;
    functions->NewTextureImage = st_NewTextureImage;
    functions->DeleteTexture = st_DeleteTextureObject;
-   functions->FreeTexImageData = st_FreeTextureImageData;
+   functions->FreeTextureImageBuffer = st_FreeTextureImageData;
 
    functions->TextureMemCpy = do_memcpy;
 
index 82ca4af7fe48c6d230a495f9a3147228aa6554b4..c991da36670b56731e26a0d5d321b6ad551ec3c7 100644 (file)
@@ -445,7 +445,7 @@ st_generate_mipmap(struct gl_context *ctx, GLenum target,
 
       /* Free old image data */
       if (dstImage->Data)
-         ctx->Driver.FreeTexImageData(ctx, dstImage);
+         ctx->Driver.FreeTextureImageBuffer(ctx, dstImage);
 
       /* initialize new image */
       _mesa_init_teximage_fields(ctx, target, dstImage, dstWidth, dstHeight,