mesa: Introduce a globally-available minify() macro.
[mesa.git] / src / mesa / drivers / dri / radeon / radeon_mipmap_tree.c
index b0c49baf2b3867f00c0068a424b0568885423334..ebf6a194cc974421f5079920f88f0e6e53a4c727 100644 (file)
@@ -147,15 +147,6 @@ static void compute_tex_image_offset(radeonContextPtr rmesa, radeon_mipmap_tree
                        lvl->rowstride, lvl->width, height, lvl->faces[face].offset);
 }
 
-static GLuint minify(GLuint size, GLuint levels)
-{
-       size = size >> levels;
-       if (size < 1)
-               size = 1;
-       return size;
-}
-
-
 static void calculate_miptree_layout(radeonContextPtr rmesa, radeon_mipmap_tree *mt)
 {
        GLuint curOffset, i, face, level;