summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Bornecrantz <wallbraker@gmail.com>2010-07-22 20:17:35 -0700
committerJakob Bornecrantz <wallbraker@gmail.com>2010-07-22 20:26:35 -0700
commitdc544d87a2f66ba8cf44e0b544f6eca3729e4f2a (patch)
tree8db075be24daae7274f64e6e5fdbe33fb67caa5e
parent095e99ddf6187aacf520944dabababdfd7b9a974 (diff)
llvmpipe: Don't align values already aligned
-rw-r--r--src/gallium/drivers/llvmpipe/lp_texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c
index bbd834519a..f4f2c6857c 100644
--- a/src/gallium/drivers/llvmpipe/lp_texture.c
+++ b/src/gallium/drivers/llvmpipe/lp_texture.c
@@ -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;