Module: Mesa Branch: master Commit: 2b801066a1fcd8a83a367f70736d6adf2043f979 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b801066a1fcd8a83a367f70736d6adf2043f979
Author: Maciej Cencora <[email protected]> Date: Sun Mar 7 12:15:25 2010 +0100 radeon: Some possible improvements that I spoted in radeon_tiled_texture branch. --- src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c index ee91f30..c6cc417 100644 --- a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c +++ b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c @@ -96,15 +96,6 @@ unsigned get_texture_image_size( return rowStride * height * depth; } -static unsigned is_pot(unsigned value) -{ - unsigned m; - - for (m = 1; m < value; m *= 2) {} - - return value == m; -} - unsigned get_texture_image_row_stride(radeonContextPtr rmesa, gl_format format, unsigned width, unsigned tiling) { if (_mesa_is_format_compressed(format)) { @@ -112,7 +103,7 @@ unsigned get_texture_image_row_stride(radeonContextPtr rmesa, gl_format format, } else { unsigned row_align; - if (!is_pot(width)) { + if (!_mesa_is_pow_two(width)) { row_align = rmesa->texture_rect_row_align - 1; } else if (tiling) { unsigned tileWidth, tileHeight; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
