From 6314dd13f7e70eedefeabc5518264b1a31c99602 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 31 May 2017 13:35:30 -0700 Subject: i965/tex: Make a couple of helpers static Reviewed-by: Kenneth Graunke Reviewed-by: Iago Toral Quiroga --- 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(-) (limited to 'src/mesa/drivers/dri') 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, -- cgit v1.2.3