From e0304180c32227342dbb67b707bfae446543bb48 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 1 Aug 2011 23:04:12 -0700 Subject: mesa: Convert _mesa_generate_mipmap to MapTexImage()-based access. Now that we can zero-copy generate the mipmaps into brand new glTexImage()-generated storage using MapTextureImage(), we no longer need to allocate image->Data in mipmap generate. This requires deleting the drivers' old overrides of the miptree tracking after calling _mesa_generate_mipmap at the same time, or the drivers promptly lose our newly-generated data. Reviewed-by: Eric Anholt --- src/mesa/main/mipmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/mipmap.h') diff --git a/src/mesa/main/mipmap.h b/src/mesa/main/mipmap.h index 4783950218a..8b7cd7d5a4a 100644 --- a/src/mesa/main/mipmap.h +++ b/src/mesa/main/mipmap.h @@ -34,10 +34,10 @@ _mesa_generate_mipmap_level(GLenum target, GLenum datatype, GLuint comps, GLint border, GLint srcWidth, GLint srcHeight, GLint srcDepth, - const GLubyte *srcData, + const GLubyte **srcData, GLint srcRowStride, GLint dstWidth, GLint dstHeight, GLint dstDepth, - GLubyte *dstData, + GLubyte **dstData, GLint dstRowStride); -- cgit v1.2.3