summaryrefslogtreecommitdiff
path: root/src/mesa/main/format_pack.h
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-12-24 08:54:26 -0700
committerBrian Paul <brianp@vmware.com>2011-12-24 08:54:26 -0700
commitf1a2aa5cb338766d7a612b2c82c7ec588ed23d0b (patch)
treebb5d2875ac6fbec384d2d8f2cef52ee5a0c2c3b1 /src/mesa/main/format_pack.h
parent488d7fc67d36bc0e5247f5d011e8ad4c2dceb5a7 (diff)
mesa: add _mesa_pack_colormask()
For generating bit-wise colormasks for arbitrary pixel formats. Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/mesa/main/format_pack.h')
-rw-r--r--src/mesa/main/format_pack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/format_pack.h b/src/mesa/main/format_pack.h
index 7df1356321c..f1b48051065 100644
--- a/src/mesa/main/format_pack.h
+++ b/src/mesa/main/format_pack.h
@@ -95,4 +95,7 @@ _mesa_pack_uint_24_8_depth_stencil_row(gl_format format, GLuint n,
const GLuint *src, void *dst);
+extern void
+_mesa_pack_colormask(gl_format format, const GLubyte colorMask[4], void *dst);
+
#endif