aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-12-08 15:19:44 -0700
committerBrian Paul <[email protected]>2012-12-14 06:33:07 -0700
commit2037a06da94bc0e14a0732c50c7d7044d9a29da0 (patch)
tree4212100b81d728bd2fc36dc2ca73f5aae9d18725 /src/mesa/main/texcompress.h
parent90b7797a1d962e64eabd98b3aeb9251fd5b873bb (diff)
mesa: add compressed_fetch_func typedef
This is a first step in removing the swrast-related code in core Mesa's texture compression files.
Diffstat (limited to 'src/mesa/main/texcompress.h')
-rw-r--r--src/mesa/main/texcompress.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/texcompress.h b/src/mesa/main/texcompress.h
index 359b9168a2c..7e3de0e9d5b 100644
--- a/src/mesa/main/texcompress.h
+++ b/src/mesa/main/texcompress.h
@@ -48,6 +48,15 @@ _mesa_compressed_image_address(GLint col, GLint row, GLint img,
gl_format mesaFormat,
GLsizei width, const GLubyte *image);
+
+/** A function to fetch one texel from a compressed texture */
+typedef void (*compressed_fetch_func)(const GLubyte *map,
+ const GLuint imageOffsets[],
+ GLint rowStride,
+ GLint i, GLint j, GLint k,
+ GLfloat *texel);
+
+
extern void
_mesa_decompress_image(gl_format format, GLuint width, GLuint height,
const GLubyte *src, GLint srcRowStride,