projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90b7797
)
mesa: add compressed_fetch_func typedef
author
Brian Paul
<brianp@vmware.com>
Sat, 8 Dec 2012 22:19:44 +0000
(15:19 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 14 Dec 2012 13:33:07 +0000
(06:33 -0700)
This is a first step in removing the swrast-related code in core
Mesa's texture compression files.
src/mesa/main/texcompress.h
patch
|
blob
|
history
diff --git
a/src/mesa/main/texcompress.h
b/src/mesa/main/texcompress.h
index 359b9168a2cf91ba4f977858cbf20e2eabcb056b..7e3de0e9d5b84c3ad8d3630904790c62c513da1b 100644
(file)
--- 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,