summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/format_unpack.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-10-11 17:07:37 -0700
committerEric Anholt <eric@anholt.net>2011-11-03 23:29:52 -0700
commitff27e058bc93338ef0dbe322ab4e588ea4bbec0d (patch)
tree1281874e1016191ba644cbcc37b60917dc928481 /src/mesa/main/format_unpack.h
parent492d223590569448c5666d421444102b50dda90d (diff)
downloadexternal_mesa3d-ff27e058bc93338ef0dbe322ab4e588ea4bbec0d.zip
external_mesa3d-ff27e058bc93338ef0dbe322ab4e588ea4bbec0d.tar.gz
external_mesa3d-ff27e058bc93338ef0dbe322ab4e588ea4bbec0d.tar.bz2
swrast: Directly map the stencil buffer in read_stencil_pixels.
This avoids going through the wrapper that has to rewrite the data for packed depth/stencil. This isn't done in _swrast_read_stencil_span because we don't want to map/unmap for each span. v2: Move the unpack code to format_unpack.c. v3: Fix signed/unsigned comparison. Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/main/format_unpack.h')
-rw-r--r--src/mesa/main/format_unpack.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/format_unpack.h b/src/mesa/main/format_unpack.h
index c37727d..2e00047 100644
--- a/src/mesa/main/format_unpack.h
+++ b/src/mesa/main/format_unpack.h
@@ -45,5 +45,9 @@ void
_mesa_unpack_uint_z_row(gl_format format, GLuint n,
const void *src, GLuint *dst);
+void
+_mesa_unpack_ubyte_stencil_row(gl_format format, GLuint n,
+ const void *src, GLubyte *dst);
+
#endif /* FORMAT_UNPACK_H */