diff options
author | José Fonseca <[email protected]> | 2009-03-31 09:46:55 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-03-31 12:29:13 +0100 |
commit | 382306c5732dd04f514bb1d8f2b050bd6d58a893 (patch) | |
tree | 9490f93b8c737b3c2c10fecdf830cfe5f087b514 /src/gallium/include/pipe | |
parent | 4d89eff0b6fd6902a2fccb87c474d6a8f6d61526 (diff) |
gallium: Move pf_is_depth_stencil to p_format.h.
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r-- | src/gallium/include/pipe/p_format.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h index 3f65a604364..a279eefef9e 100644 --- a/src/gallium/include/pipe/p_format.h +++ b/src/gallium/include/pipe/p_format.h @@ -537,6 +537,13 @@ pf_get_nblocks(const struct pipe_format_block *block, unsigned width, unsigned h } static INLINE boolean +pf_is_depth_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_compressed( enum pipe_format format ) { return pf_layout(format) == PIPE_FORMAT_LAYOUT_DXT ? TRUE : FALSE; |