diff options
author | Anuj Phogat <[email protected]> | 2014-03-21 11:16:00 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2014-05-01 10:58:40 -0700 |
commit | 29b8e894d15cf960c624189fad7d0cf1fdc9c405 (patch) | |
tree | 620ba5bbe3fbad4d74894c18dfe5cfbaea39d6cc /src/mesa/main/format_unpack.h | |
parent | 7a8045d2f7b7f749a555dbe5f51c327ab0cd6cc8 (diff) |
mesa: Add support to unpack depth-stencil texture in to FLOAT_32_UNSIGNED_INT_24_8_REV
V2: Follow the new naming convention for unpack functions.
Use double precision for converting Z24 to a float.
V3: Unpack stencil value to most significant byte.
Use 'struct z32f_x24s8' type.
V4: Unpack stencil value to least significant byte.
Add a comment to clarify stencil packing.
Cc: <[email protected]>
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/format_unpack.h')
-rw-r--r-- | src/mesa/main/format_unpack.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/format_unpack.h b/src/mesa/main/format_unpack.h index 5904a28e755..51f97df4d77 100644 --- a/src/mesa/main/format_unpack.h +++ b/src/mesa/main/format_unpack.h @@ -64,6 +64,11 @@ _mesa_unpack_uint_24_8_depth_stencil_row(mesa_format format, GLuint n, const void *src, GLuint *dst); void +_mesa_unpack_float_32_uint_24_8_depth_stencil_row(mesa_format format, + GLuint n, + const void *src, + GLuint *dst); +void _mesa_unpack_depth_stencil_row(mesa_format format, GLuint n, const void *src, GLenum type, GLuint *dst); |