util: Remove util_format_get_block().
authorMichal Krol <michal@vmware.com>
Thu, 17 Dec 2009 21:39:03 +0000 (22:39 +0100)
committerMichal Krol <michal@vmware.com>
Thu, 17 Dec 2009 21:39:03 +0000 (22:39 +0100)
src/gallium/auxiliary/util/u_format.h

index f5e8eec04509df0950284bf2fcbeeba09dfc4983..72da2a44c74fb533c8dbc86d9c79469432947445 100644 (file)
@@ -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.