summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress_etc.h
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-07-10 16:34:27 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-07-16 14:07:57 -0700
commit8ec721264c7ae0f73a520362963b2691bf098b9b (patch)
treed78d24ef98120e85bd4710392af4c280fe476bc0 /src/mesa/main/texcompress_etc.h
parentd7458e401e97aea882309855cc72730aa3b39920 (diff)
downloadexternal_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.h8
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