diff options
author | José Fonseca <[email protected]> | 2009-06-11 19:03:54 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-06-11 19:03:54 +0100 |
commit | 877061141ae263128eac8ec1f1077f34e52651fa (patch) | |
tree | 56572cad55e67359217ac2be6db7cb56b6a586b1 /src/gallium/include | |
parent | bf89ecb6c92aaaeccd7b6f093cb8bae9fd56aaf6 (diff) | |
parent | de413b1ba9f30771bceacdbc160192d964a1ca63 (diff) |
Merge branch 'mesa_7_5_branch'
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_format.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h index 187377f92ae..e31538c95fc 100644 --- a/src/gallium/include/pipe/p_format.h +++ b/src/gallium/include/pipe/p_format.h @@ -549,13 +549,23 @@ pf_get_2d_size(const struct pipe_format_block *block, size_t stride, unsigned he } static INLINE boolean -pf_is_depth_stencil( enum pipe_format format ) +pf_is_depth_or_stencil( enum pipe_format format ) { return (pf_get_component_bits( format, PIPE_FORMAT_COMP_Z ) + pf_get_component_bits( format, PIPE_FORMAT_COMP_S )) != 0; } static INLINE boolean +pf_is_depth_and_stencil( enum pipe_format format ) +{ + return (pf_get_component_bits( format, PIPE_FORMAT_COMP_Z ) != 0 && + pf_get_component_bits( format, PIPE_FORMAT_COMP_S ) != 0); +} + +/** DEPRECATED: For backwards compatibility */ +#define pf_is_depth_stencil pf_is_depth_or_stencil + +static INLINE boolean pf_is_compressed( enum pipe_format format ) { return pf_layout(format) == PIPE_FORMAT_LAYOUT_DXT ? TRUE : FALSE; |