Mesa (master): mesa: add compressed_fetch_func typedef

Brian Paul brianp at kemper.freedesktop.org
Fri Dec 14 14:32:52 UTC 2012


Module: Mesa
Branch: master
Commit: 2037a06da94bc0e14a0732c50c7d7044d9a29da0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2037a06da94bc0e14a0732c50c7d7044d9a29da0

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Dec  8 15:19:44 2012 -0700

mesa: add compressed_fetch_func typedef

This is a first step in removing the swrast-related code in core
Mesa's texture compression files.

---

 src/mesa/main/texcompress.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/texcompress.h b/src/mesa/main/texcompress.h
index 359b916..7e3de0e 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,




More information about the mesa-commit mailing list