diff options
author | Dave Airlie <airlied@redhat.com> | 2010-10-06 09:30:17 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-13 09:30:03 +1000 |
commit | 66a0d1e4b930902810a5825193c4057626a51558 (patch) | |
tree | 4249ecc05ed5f64d3475b87974d700b803eb1618 /src/gallium/auxiliary/util/u_format_zs.c | |
parent | 4ecb2c105da590abf79421a06234b636cd1afcd6 (diff) | |
download | external_mesa3d-66a0d1e4b930902810a5825193c4057626a51558.zip external_mesa3d-66a0d1e4b930902810a5825193c4057626a51558.tar.gz external_mesa3d-66a0d1e4b930902810a5825193c4057626a51558.tar.bz2 |
gallium/format: add support for X24S8 and S8X24 formats.
these formats are needed for hw that can sample and write stencil values.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/auxiliary/util/u_format_zs.c')
-rw-r--r-- | src/gallium/auxiliary/util/u_format_zs.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_format_zs.c b/src/gallium/auxiliary/util/u_format_zs.c index 792d69c..fdadcec 100644 --- a/src/gallium/auxiliary/util/u_format_zs.c +++ b/src/gallium/auxiliary/util/u_format_zs.c @@ -918,3 +918,35 @@ util_format_z32_float_s8x24_uscaled_pack_s_8uscaled(uint8_t *dst_row, unsigned d } } + +void +util_format_x24s8_uscaled_unpack_s_8uscaled(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height) +{ + util_format_z24_unorm_s8_uscaled_unpack_s_8uscaled(dst_row, dst_stride, + src_row, src_stride, + width, height); +} + +void +util_format_x24s8_uscaled_pack_s_8uscaled(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height) +{ + util_format_z24_unorm_s8_uscaled_pack_s_8uscaled(dst_row, dst_stride, + src_row, src_stride, + width, height); +} + +void +util_format_s8x24_uscaled_unpack_s_8uscaled(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height) +{ + util_format_s8_uscaled_z24_unorm_unpack_s_8uscaled(dst_row, dst_stride, + src_row, src_stride, + width, height); +} + +void +util_format_s8x24_uscaled_pack_s_8uscaled(uint8_t *dst_row, unsigned dst_stride, const uint8_t *src_row, unsigned src_stride, unsigned width, unsigned height) +{ + util_format_s8_uscaled_z24_unorm_pack_s_8uscaled(dst_row, dst_stride, + src_row, src_stride, + width, height); +} |