diff options
author | Brian Paul <[email protected]> | 2016-03-24 11:24:33 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-03-29 18:13:45 -0600 |
commit | 105fe527840ed5fc55e78c4561915fbe1fded76c (patch) | |
tree | 1ef565a326e9b11e3a19c86878168652d47812ed /src/mesa/main/mipmap.h | |
parent | d4a5a61d445e683c20de00c1febe847b4c2db910 (diff) |
mesa: new _mesa_prepare_mipmap_levels() function for mipmap generation
Simplifies the loops in generate_mipmap_uncompressed() and
generate_mipmap_compressed(). Will be used in the state tracker too.
Could probably be used in the meta code. If so, some additional
clean-ups can be done after that.
v2: use unsigned types instead of GLuint, per Ian
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/mipmap.h')
-rw-r--r-- | src/mesa/main/mipmap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/mipmap.h b/src/mesa/main/mipmap.h index c0366d329a2..33913e88417 100644 --- a/src/mesa/main/mipmap.h +++ b/src/mesa/main/mipmap.h @@ -47,6 +47,11 @@ _mesa_prepare_mipmap_level(struct gl_context *ctx, GLsizei width, GLsizei height, GLsizei depth, GLsizei border, GLenum intFormat, mesa_format format); +void +_mesa_prepare_mipmap_levels(struct gl_context *ctx, + struct gl_texture_object *texObj, + unsigned baseLevel, unsigned maxLevel); + extern void _mesa_generate_mipmap(struct gl_context *ctx, GLenum target, struct gl_texture_object *texObj); |