diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-07-10 16:34:27 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-07-16 14:07:57 -0700 |
commit | 8ec721264c7ae0f73a520362963b2691bf098b9b (patch) | |
tree | d78d24ef98120e85bd4710392af4c280fe476bc0 /src/mesa/main/texcompress_etc.h | |
parent | d7458e401e97aea882309855cc72730aa3b39920 (diff) | |
download | external_mesa3d-8ec721264c7ae0f73a520362963b2691bf098b9b.zip external_mesa3d-8ec721264c7ae0f73a520362963b2691bf098b9b.tar.gz external_mesa3d-8ec721264c7ae0f73a520362963b2691bf098b9b.tar.bz2 |
mesa: Add function for decoding ETC1 textures
Add function _mesa_etc1_unpack_rgba8888. It is intended to be used by
glCompressedTexSubImage2D to decode ETC1 textures into RGBA.
CC: Chia-I <olv@lunarg.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/mesa/main/texcompress_etc.h')
-rw-r--r-- | src/mesa/main/texcompress_etc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/texcompress_etc.h b/src/mesa/main/texcompress_etc.h index 8e8427f..bfba4ff 100644 --- a/src/mesa/main/texcompress_etc.h +++ b/src/mesa/main/texcompress_etc.h @@ -37,4 +37,12 @@ void _mesa_fetch_texel_2d_f_etc1_rgb8(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel); +void +_mesa_etc1_unpack_rgba8888(uint8_t *dst_row, + unsigned dst_stride, + const uint8_t *src_row, + unsigned src_stride, + unsigned src_width, + unsigned src_height); + #endif |