[Mesa-dev] [PATCH 3/5] i965/tex: Make a couple of helpers static

Kenneth Graunke kenneth at whitecape.org
Fri Sep 15 03:10:48 UTC 2017


From: Jason Ekstrand <jason.ekstrand at intel.com>

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/intel_tex.h       | 20 --------------------
 src/mesa/drivers/dri/i965/intel_tex_image.c |  4 ++--
 2 files changed, 2 insertions(+), 22 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/intel_tex.h b/src/mesa/drivers/dri/i965/intel_tex.h
index 2c5913ad2d1..42565baebf6 100644
--- a/src/mesa/drivers/dri/i965/intel_tex.h
+++ b/src/mesa/drivers/dri/i965/intel_tex.h
@@ -52,24 +52,4 @@ intel_miptree_create_for_teximage(struct brw_context *brw,
 
 void intel_finalize_mipmap_tree(struct brw_context *brw, GLuint unit);
 
-bool
-intel_texsubimage_tiled_memcpy(struct gl_context *ctx,
-                               GLuint dims,
-                               struct gl_texture_image *texImage,
-                               GLint xoffset, GLint yoffset, GLint zoffset,
-                               GLsizei width, GLsizei height, GLsizei depth,
-                               GLenum format, GLenum type,
-                               const GLvoid *pixels,
-                               const struct gl_pixelstore_attrib *packing,
-                               bool for_glTexImage);
-
-bool
-intel_gettexsubimage_tiled_memcpy(struct gl_context *ctx,
-                                  struct gl_texture_image *texImage,
-                                  GLint xoffset, GLint yofset,
-                                  GLsizei width, GLsizei height,
-                                  GLenum format, GLenum type,
-                                  GLvoid *pixels,
-                                  const struct gl_pixelstore_attrib *packing);
-
 #endif
diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c
index b8318a5719f..cb1550bf639 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_image.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_image.c
@@ -153,7 +153,7 @@ intel_miptree_create_for_teximage(struct brw_context *brw,
  * regions are updated with glTexSubImage2D. On some workloads, the
  * performance gain of this fastpath on Sandybridge is over 5x.
  */
-bool
+static bool
 intel_texsubimage_tiled_memcpy(struct gl_context * ctx,
                                GLuint dims,
                                struct gl_texture_image *texImage,
@@ -581,7 +581,7 @@ intel_image_target_texture_2d(struct gl_context *ctx, GLenum target,
  *
  * \see intel_readpixels_tiled_memcpy()
  */
-bool
+static bool
 intel_gettexsubimage_tiled_memcpy(struct gl_context *ctx,
                                   struct gl_texture_image *texImage,
                                   GLint xoffset, GLint yoffset,
-- 
2.14.1



More information about the mesa-dev mailing list