Mesa (main): mesa: Make _mesa_generate_mipmap_level static

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 7 19:02:50 UTC 2021


Module: Mesa
Branch: main
Commit: d9f0991744aa96b354b0912c4b31a995c3b274b0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d9f0991744aa96b354b0912c4b31a995c3b274b0

Author: Adam Jackson <ajax at redhat.com>
Date:   Mon Dec  6 21:49:18 2021 -0500

mesa: Make _mesa_generate_mipmap_level static

Reviewed-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14098>

---

 src/mesa/main/mipmap.c |  2 +-
 src/mesa/main/mipmap.h | 11 -----------
 2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index b73413ee51f..6bb586655eb 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -1720,7 +1720,7 @@ make_3d_mipmap(GLenum datatype, GLuint comps, GLint border,
  * \param srcRowStride  stride between source rows, in bytes
  * \param dstRowStride  stride between destination rows, in bytes
  */
-void
+static void
 _mesa_generate_mipmap_level(GLenum target,
                             GLenum datatype, GLuint comps,
                             GLint border,
diff --git a/src/mesa/main/mipmap.h b/src/mesa/main/mipmap.h
index 3ec99721743..b3dd22e6b7d 100644
--- a/src/mesa/main/mipmap.h
+++ b/src/mesa/main/mipmap.h
@@ -36,17 +36,6 @@ _mesa_compute_num_levels(struct gl_context *ctx,
                          struct gl_texture_object *texObj,
                          GLenum target);
 
-extern void
-_mesa_generate_mipmap_level(GLenum target,
-                            GLenum datatype, GLuint comps,
-                            GLint border,
-                            GLint srcWidth, GLint srcHeight, GLint srcDepth,
-                            const GLubyte **srcData,
-                            GLint srcRowStride,
-                            GLint dstWidth, GLint dstHeight, GLint dstDepth,
-                            GLubyte **dstData,
-                            GLint dstRowStride);
-
 void
 _mesa_prepare_mipmap_levels(struct gl_context *ctx,
                             struct gl_texture_object *texObj,



More information about the mesa-commit mailing list