diff options
author | Eric Anholt <[email protected]> | 2011-10-11 17:07:37 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-11-03 23:29:52 -0700 |
commit | ff27e058bc93338ef0dbe322ab4e588ea4bbec0d (patch) | |
tree | 1281874e1016191ba644cbcc37b60917dc928481 /src/mesa/main/format_unpack.h | |
parent | 492d223590569448c5666d421444102b50dda90d (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/main/format_unpack.h')
-rw-r--r-- | src/mesa/main/format_unpack.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/format_unpack.h b/src/mesa/main/format_unpack.h index c37727d91a0..2e00047c201 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 */ |