diff options
author | Michal Krol <[email protected]> | 2009-12-03 09:48:18 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-12-03 09:48:18 +0100 |
commit | 3ffe25c91706fe5ab2735f07c3c8b4114b9f9514 (patch) | |
tree | 245e19cbfc4cb837b438c19007215ea56359fa2d | |
parent | cdb6849fc1fa0c6e360c89a6388dc8bf19a746ca (diff) |
gallium: Remove unused format functions.
-rw-r--r-- | src/gallium/include/pipe/p_format.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h index af230809201..8c61858e7b5 100644 --- a/src/gallium/include/pipe/p_format.h +++ b/src/gallium/include/pipe/p_format.h @@ -575,44 +575,6 @@ pf_is_compressed( enum pipe_format format ) return pf_layout(format) == PIPE_FORMAT_LAYOUT_DXT ? TRUE : FALSE; } -static INLINE boolean -pf_is_ycbcr( enum pipe_format format ) -{ - return pf_layout(format) == PIPE_FORMAT_LAYOUT_YCBCR ? TRUE : FALSE; -} - -static INLINE boolean -pf_has_alpha( enum pipe_format format ) -{ - switch (pf_layout(format)) { - case PIPE_FORMAT_LAYOUT_RGBAZS: - case PIPE_FORMAT_LAYOUT_MIXED: - /* FIXME: pf_get_component_bits( PIPE_FORMAT_A8L8_UNORM, PIPE_FORMAT_COMP_A ) should not return 0 right? */ - if(format == PIPE_FORMAT_A8_UNORM || - format == PIPE_FORMAT_A8L8_UNORM || - format == PIPE_FORMAT_A8L8_SRGB) - return TRUE; - return pf_get_component_bits( format, PIPE_FORMAT_COMP_A ) ? TRUE : FALSE; - case PIPE_FORMAT_LAYOUT_YCBCR: - return FALSE; - case PIPE_FORMAT_LAYOUT_DXT: - switch (format) { - case PIPE_FORMAT_DXT1_RGBA: - case PIPE_FORMAT_DXT3_RGBA: - case PIPE_FORMAT_DXT5_RGBA: - case PIPE_FORMAT_DXT1_SRGBA: - case PIPE_FORMAT_DXT3_SRGBA: - case PIPE_FORMAT_DXT5_SRGBA: - return TRUE; - default: - return FALSE; - } - default: - assert( 0 ); - return FALSE; - } -} - enum pipe_video_chroma_format { PIPE_VIDEO_CHROMA_FORMAT_420, |