mesa: make _mesa_get_[compressed_]texture_image() static
authorBrian Paul <brianp@vmware.com>
Wed, 22 Jul 2015 00:35:38 +0000 (18:35 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 22 Jul 2015 00:35:38 +0000 (18:35 -0600)
These functions are only called from teximage.c

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/texgetimage.c
src/mesa/main/texgetimage.h

index 8ade264556bb804ba3e05264979597061f2c8582..02c1fdf6c604e8fe41fb64bdc33e9b0d9549d82f 100644 (file)
@@ -1004,12 +1004,12 @@ getteximage_error_check(struct gl_context *ctx,
  * \param dsa True when the caller is an ARB_direct_state_access function,
  *            false otherwise
  */
-void
-_mesa_get_texture_image(struct gl_context *ctx,
-                        struct gl_texture_object *texObj,
-                        struct gl_texture_image *texImage, GLenum target,
-                        GLint level, GLenum format, GLenum type,
-                        GLsizei bufSize, GLvoid *pixels, bool dsa)
+static void
+get_texture_image(struct gl_context *ctx,
+                  struct gl_texture_object *texObj,
+                  struct gl_texture_image *texImage, GLenum target,
+                  GLint level, GLenum format, GLenum type,
+                  GLsizei bufSize, GLvoid *pixels, bool dsa)
 {
    assert(texObj);
    assert(texImage);
@@ -1103,8 +1103,8 @@ _mesa_GetnTexImageARB(GLenum target, GLint level, GLenum format,
    if (!texImage)
       return;
 
-   _mesa_get_texture_image(ctx, texObj, texImage, target, level, format, type,
-                           bufSize, pixels, false);
+   get_texture_image(ctx, texObj, texImage, target, level, format, type,
+                     bufSize, pixels, false);
 }
 
 
@@ -1179,8 +1179,8 @@ _mesa_GetTextureImage(GLuint texture, GLint level, GLenum format,
          texImage = texObj->Image[i][level];
          assert(texImage);
 
-         _mesa_get_texture_image(ctx, texObj, texImage, texObj->Target, level,
-                                 format, type, bufSize, pixels, true);
+         get_texture_image(ctx, texObj, texImage, texObj->Target, level,
+                           format, type, bufSize, pixels, true);
 
          image_stride = _mesa_image_image_stride(&ctx->Pack, texImage->Width,
                                                  texImage->Height, format,
@@ -1194,8 +1194,8 @@ _mesa_GetTextureImage(GLuint texture, GLint level, GLenum format,
       if (!texImage)
          return;
 
-      _mesa_get_texture_image(ctx, texObj, texImage, texObj->Target, level,
-                              format, type, bufSize, pixels, true);
+      get_texture_image(ctx, texObj, texImage, texObj->Target, level,
+                        format, type, bufSize, pixels, true);
    }
 }
 
index 611b1bd053f8d3c37fe4481ae7c0d3511fe90be7..5124851f4617e864ea388d3cfd223b94db8ee02d 100644 (file)
@@ -48,13 +48,6 @@ _mesa_GetCompressedTexImage_sw(struct gl_context *ctx,
                                struct gl_texture_image *texImage,
                                GLvoid *data);
 
-extern void
-_mesa_get_texture_image(struct gl_context *ctx,
-                        struct gl_texture_object *texObj,
-                        struct gl_texture_image *texImage, GLenum target,
-                        GLint level, GLenum format, GLenum type,
-                        GLsizei bufSize, GLvoid *pixels, bool dsa);
-
 extern void
 _mesa_get_compressed_texture_image( struct gl_context *ctx,
                                     struct gl_texture_object *texObj,