diff options
author | Michal Krol <[email protected]> | 2009-12-17 22:39:03 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-12-17 22:39:03 +0100 |
commit | ec5577a83da18890a4f334af2241aca41b6ed31b (patch) | |
tree | 04ba909004370904972898f4d3926900503dc2a3 /src/gallium/auxiliary | |
parent | 16c6dce013f089d072256652f012b3b604781bfd (diff) |
util: Remove util_format_get_block().
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/util/u_format.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index f5e8eec0450..72da2a44c74 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -195,29 +195,6 @@ util_format_is_depth_and_stencil(enum pipe_format format) desc->swizzle[1] != UTIL_FORMAT_SWIZZLE_NONE) ? TRUE : FALSE; } -/** - * Describe pixel format's block. - * - * @sa http://msdn2.microsoft.com/en-us/library/ms796147.aspx - */ -static INLINE void -util_format_get_block(enum pipe_format format, - struct pipe_format_block *block) -{ - const struct util_format_description *desc = util_format_description(format); - - assert(format); - if (!format) { - block->size = 0; - block->width = 1; - block->height = 1; - return; - } - - block->size = desc->block.bits / 8; - block->width = desc->block.width; - block->height = desc->block.height; -} /** * Return total bits needed for the pixel format. |