summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-12-16 08:44:42 -0700
committerBrian Paul <[email protected]>2011-12-16 08:44:42 -0700
commit89da5a14153299adacec7f74047cf7e014b47b70 (patch)
tree473c82e24051474a9d8f164ceeed615550aad9da
parent36a484bc9853aa541ae7c74401a228ee5c212ff7 (diff)
mesa: add a few comments for the z unpacking functions
-rw-r--r--src/mesa/main/format_unpack.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c
index 4f23f3dec3d..32d198ce84b 100644
--- a/src/mesa/main/format_unpack.c
+++ b/src/mesa/main/format_unpack.c
@@ -1822,6 +1822,10 @@ unpack_float_z_Z32X24S8(GLuint n, const void *src, GLfloat *dst)
+/**
+ * Unpack Z values.
+ * The returned values will always be in the range [0.0, 1.0].
+ */
void
_mesa_unpack_float_z_row(gl_format format, GLuint n,
const void *src, GLfloat *dst)
@@ -1901,6 +1905,10 @@ unpack_uint_z_Z32(const void *src, GLuint *dst, GLuint n)
}
+/**
+ * Unpack Z values.
+ * The returned values will always be in the range [0, 0xffffffff].
+ */
void
_mesa_unpack_uint_z_row(gl_format format, GLuint n,
const void *src, GLuint *dst)