summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress_etc.h
diff options
context:
space:
mode:
authorAnuj Phogat <anuj.phogat@gmail.com>2012-09-27 17:05:24 -0700
committerIan Romanick <ian.d.romanick@intel.com>2012-12-07 16:29:48 -0800
commit965a24995d1bfe5c22dfc201de6c2215a3df35a7 (patch)
treeebb112a0a20edd7a21bf67c8699831dc6d880fba /src/mesa/main/texcompress_etc.h
parent81911101eedffed5ab13bce5a76bbcd2eefaffd6 (diff)
downloadexternal_mesa3d-965a24995d1bfe5c22dfc201de6c2215a3df35a7.zip
external_mesa3d-965a24995d1bfe5c22dfc201de6c2215a3df35a7.tar.gz
external_mesa3d-965a24995d1bfe5c22dfc201de6c2215a3df35a7.tar.bz2
mesa: Add decoding functions for GL_COMPRESSED_SRGB8_ETC2
Data in GL_COMPRESSED_SRGB8_ETC2 format is decoded and stored in MESA_FORMAT_SARGB8. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/main/texcompress_etc.h')
-rw-r--r--src/mesa/main/texcompress_etc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/texcompress_etc.h b/src/mesa/main/texcompress_etc.h
index 2508f5f..1dc1d5a 100644
--- a/src/mesa/main/texcompress_etc.h
+++ b/src/mesa/main/texcompress_etc.h
@@ -37,6 +37,9 @@ _mesa_texstore_etc1_rgb8(TEXSTORE_PARAMS);
GLboolean
_mesa_texstore_etc2_rgb8(TEXSTORE_PARAMS);
+GLboolean
+_mesa_texstore_etc2_srgb8(TEXSTORE_PARAMS);
+
void
_mesa_fetch_texel_2d_f_etc1_rgb8(const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel);
@@ -44,6 +47,10 @@ void
_mesa_fetch_texel_2d_f_etc2_rgb8(const struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, GLfloat *texel);
void
+_mesa_fetch_texel_2d_f_etc2_srgb8(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,