diff options
author | Brian Paul <[email protected]> | 2011-08-01 23:04:12 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-10-03 13:29:30 -0700 |
commit | e0304180c32227342dbb67b707bfae446543bb48 (patch) | |
tree | 05224697ca0948eded9adb328a215bc2c5a3a24f /src/mesa/main/mipmap.h | |
parent | 1165b64f561a7bdd3f603d9e30a2340774ba31ee (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/main/mipmap.h')
-rw-r--r-- | src/mesa/main/mipmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |