summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress_etc.h
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2012-07-10 16:34:27 -0700
committerChad Versace <[email protected]>2012-07-16 14:07:57 -0700
commit8ec721264c7ae0f73a520362963b2691bf098b9b (patch)
treed78d24ef98120e85bd4710392af4c280fe476bc0 /src/mesa/main/texcompress_etc.h
parentd7458e401e97aea882309855cc72730aa3b39920 (diff)
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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Chad Versace <[email protected]>
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 8e8427f8fd4..bfba4ff85e9 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