From 5ea8cd008426a0d92a524ccb747b8d3c02f1142a Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Mon, 12 Nov 2012 16:13:25 -0800 Subject: mesa: Add decoding functions for GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC Data in GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC format is decoded and stored in MESA_FORMAT_SARGB8. Signed-off-by: Anuj Phogat Reviewed-by: Brian Paul --- src/mesa/main/texcompress_etc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mesa/main/texcompress_etc.h') diff --git a/src/mesa/main/texcompress_etc.h b/src/mesa/main/texcompress_etc.h index fd9d2d7224b..cfe8da3dabc 100644 --- a/src/mesa/main/texcompress_etc.h +++ b/src/mesa/main/texcompress_etc.h @@ -43,6 +43,9 @@ _mesa_texstore_etc2_srgb8(TEXSTORE_PARAMS); GLboolean _mesa_texstore_etc2_rgba8_eac(TEXSTORE_PARAMS); +GLboolean +_mesa_texstore_etc2_srgb8_alpha8_eac(TEXSTORE_PARAMS); + void _mesa_fetch_texel_2d_f_etc1_rgb8(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel); @@ -56,6 +59,11 @@ _mesa_fetch_texel_2d_f_etc2_srgb8(const struct swrast_texture_image *texImage, void _mesa_fetch_texel_2d_f_etc2_rgba8_eac(const struct swrast_texture_image *texImage, GLint i, GLint j, GLint k, GLfloat *texel); +void +_mesa_fetch_texel_2d_f_etc2_srgb8_alpha8_eac(const struct + swrast_texture_image *texImage, + GLint i, GLint j, + GLint k, GLfloat *texel); void _mesa_etc1_unpack_rgba8888(uint8_t *dst_row, -- cgit v1.2.3