diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-08-29 06:03:39 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-08-29 06:16:25 +0200 |
commit | 89b2897220acfacdc431f138377fbcec9f0ea812 (patch) | |
tree | ef25c5d3201d66cfcd9586482c81f442ec190844 /src/gallium/auxiliary/gallivm/lp_bld_format_aos.c | |
parent | 735af3959f4a4eb5940835c5a4117a020f103414 (diff) |
util: remove util_is_pot in favor of util_is_power_of_two
The function was duplicated.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_format_aos.c')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_format_aos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c index 247cb83ce6..92123e09d3 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c @@ -388,7 +388,7 @@ lp_build_fetch_rgba_aos(LLVMBuilderRef builder, if (format_matches_type(format_desc, type) && format_desc->block.bits <= type.width * 4 && - util_is_pot(format_desc->block.bits)) { + util_is_power_of_two(format_desc->block.bits)) { LLVMValueRef packed; /* @@ -416,7 +416,7 @@ lp_build_fetch_rgba_aos(LLVMBuilderRef builder, format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) && format_desc->block.width == 1 && format_desc->block.height == 1 && - util_is_pot(format_desc->block.bits) && + util_is_power_of_two(format_desc->block.bits) && format_desc->block.bits <= 32 && format_desc->is_bitmask && !format_desc->is_mixed && |