i965/tex: Make a couple of helpers static
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 31 May 2017 20:35:30 +0000 (13:35 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 15 Sep 2017 17:59:03 +0000 (10:59 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/intel_tex.h
src/mesa/drivers/dri/i965/intel_tex_image.c

index 2c5913ad2d1e794a9bacee1631bb7deb4dd0bf81..42565baebf672166f3bae7b20eb813284456ce17 100644 (file)
@@ -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
index b8318a5719fefb6908270e43da44f93847f87bea..cb1550bf639096b0727c83cc1919120b73ff2c39 100644 (file)
@@ -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,