llvmpipe: Don't align values already aligned
authorJakob Bornecrantz <wallbraker@gmail.com>
Fri, 23 Jul 2010 03:17:35 +0000 (20:17 -0700)
committerJakob Bornecrantz <wallbraker@gmail.com>
Fri, 23 Jul 2010 03:26:35 +0000 (20:26 -0700)
src/gallium/drivers/llvmpipe/lp_texture.c

index bbd834519a3c9bc941193356fa5c93cedc0df10a..f4f2c6857c9ee2e0d175a75898e3be88836b4867 100644 (file)
@@ -184,8 +184,8 @@ llvmpipe_displaytarget_layout(struct llvmpipe_screen *screen,
     */
    const unsigned width = align(lpr->base.width0, TILE_SIZE);
    const unsigned height = align(lpr->base.height0, TILE_SIZE);
-   const unsigned width_t = align(width, TILE_SIZE) / TILE_SIZE;
-   const unsigned height_t = align(height, TILE_SIZE) / TILE_SIZE;
+   const unsigned width_t = width / TILE_SIZE;
+   const unsigned height_t = height / TILE_SIZE;
 
    lpr->tiles_per_row[0] = width_t;
    lpr->tiles_per_image[0] = width_t * height_t;