diff options
author | Timothy Arceri <[email protected]> | 2017-05-10 15:22:40 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-05-17 10:12:03 +1000 |
commit | f1e692b452ce495e1326013b9ea61461ae46dbc4 (patch) | |
tree | 827a6e4078c3465b4cb94e2ce06158a44aa6e838 /src/mesa/main/teximage.c | |
parent | 3336d248e833280badcae52909b5b2e69f359d8b (diff) |
mesa: make _mesa_compressed_texture_sub_image() static
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 69 |
1 files changed, 30 insertions, 39 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 1a00d251324..24867047564 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -4499,17 +4499,14 @@ _mesa_CompressedTexImage3D(GLenum target, GLint level, * Common helper for glCompressedTexSubImage1/2/3D() and * glCompressedTextureSubImage1/2/3D(). */ -void -_mesa_compressed_texture_sub_image(struct gl_context *ctx, GLuint dims, - struct gl_texture_object *texObj, - struct gl_texture_image *texImage, - GLenum target, GLint level, - GLint xoffset, GLint yoffset, - GLint zoffset, - GLsizei width, GLsizei height, - GLsizei depth, - GLenum format, GLsizei imageSize, - const GLvoid *data) +static void +compressed_texture_sub_image(struct gl_context *ctx, GLuint dims, + struct gl_texture_object *texObj, + struct gl_texture_image *texImage, + GLenum target, GLint level, GLint xoffset, + GLint yoffset, GLint zoffset, GLsizei width, + GLsizei height, GLsizei depth, GLenum format, + GLsizei imageSize, const GLvoid *data) { FLUSH_VERTICES(ctx, 0); @@ -4562,9 +4559,9 @@ _mesa_CompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, texImage = _mesa_select_tex_image(texObj, target, level); assert(texImage); - _mesa_compressed_texture_sub_image(ctx, 1, texObj, texImage, target, level, - xoffset, 0, 0, width, 1, 1, - format, imageSize, data); + compressed_texture_sub_image(ctx, 1, texObj, texImage, target, level, + xoffset, 0, 0, width, 1, 1, format, imageSize, + data); } void GLAPIENTRY @@ -4598,10 +4595,9 @@ _mesa_CompressedTextureSubImage1D(GLuint texture, GLint level, GLint xoffset, texImage = _mesa_select_tex_image(texObj, texObj->Target, level); assert(texImage); - _mesa_compressed_texture_sub_image(ctx, 1, texObj, texImage, - texObj->Target, level, - xoffset, 0, 0, width, 1, 1, - format, imageSize, data); + compressed_texture_sub_image(ctx, 1, texObj, texImage, texObj->Target, + level, xoffset, 0, 0, width, 1, 1, format, + imageSize, data); } @@ -4637,9 +4633,9 @@ _mesa_CompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, texImage = _mesa_select_tex_image(texObj, target, level); assert(texImage); - _mesa_compressed_texture_sub_image(ctx, 2, texObj, texImage, target, level, - xoffset, yoffset, 0, width, height, 1, - format, imageSize, data); + compressed_texture_sub_image(ctx, 2, texObj, texImage, target, level, + xoffset, yoffset, 0, width, height, 1, + format, imageSize, data); } void GLAPIENTRY @@ -4675,10 +4671,9 @@ _mesa_CompressedTextureSubImage2D(GLuint texture, GLint level, GLint xoffset, texImage = _mesa_select_tex_image(texObj, texObj->Target, level); assert(texImage); - _mesa_compressed_texture_sub_image(ctx, 2, texObj, texImage, - texObj->Target, level, - xoffset, yoffset, 0, width, height, 1, - format, imageSize, data); + compressed_texture_sub_image(ctx, 2, texObj, texImage, texObj->Target, + level, xoffset, yoffset, 0, width, height, 1, + format, imageSize, data); } void GLAPIENTRY @@ -4713,10 +4708,9 @@ _mesa_CompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, texImage = _mesa_select_tex_image(texObj, target, level); assert(texImage); - _mesa_compressed_texture_sub_image(ctx, 3, texObj, texImage, target, level, - xoffset, yoffset, zoffset, - width, height, depth, - format, imageSize, data); + compressed_texture_sub_image(ctx, 3, texObj, texImage, target, level, + xoffset, yoffset, zoffset, width, height, + depth, format, imageSize, data); } void GLAPIENTRY @@ -4770,11 +4764,10 @@ _mesa_CompressedTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, texImage = texObj->Image[i][level]; assert(texImage); - _mesa_compressed_texture_sub_image(ctx, 3, texObj, texImage, - texObj->Target, level, - xoffset, yoffset, zoffset, - width, height, 1, - format, imageSize, pixels); + compressed_texture_sub_image(ctx, 3, texObj, texImage, + texObj->Target, level, xoffset, yoffset, + zoffset, width, height, 1, format, + imageSize, pixels); /* Compressed images don't have a client format */ image_stride = _mesa_format_image_size(texImage->TexFormat, @@ -4789,11 +4782,9 @@ _mesa_CompressedTextureSubImage3D(GLuint texture, GLint level, GLint xoffset, texImage = _mesa_select_tex_image(texObj, texObj->Target, level); assert(texImage); - _mesa_compressed_texture_sub_image(ctx, 3, texObj, texImage, - texObj->Target, level, - xoffset, yoffset, zoffset, - width, height, depth, - format, imageSize, data); + compressed_texture_sub_image(ctx, 3, texObj, texImage, texObj->Target, + level, xoffset, yoffset, zoffset, width, + height, depth, format, imageSize, data); } } |