Lines Matching full:next_power_of_two
152 static unsigned next_power_of_two(unsigned x)
166 val = next_power_of_two(val);
1433 surflevel->npix_x = mip_minify(next_power_of_two(surf->npix_x), level);
1439 surflevel->nblk_x = (next_power_of_two(surflevel->npix_x) + surf->blk_w - 1) / surf->blk_w;
1440 surflevel->nblk_y = (next_power_of_two(surflevel->npix_y) + surf->blk_h - 1) / surf->blk_h;
1441 surflevel->nblk_z = (next_power_of_two(surflevel->npix_z) + surf->blk_d - 1) / surf->blk_d;
1483 surflevel->npix_x = mip_minify(next_power_of_two(surf->npix_x), level);
1489 surflevel->nblk_x = (next_power_of_two(surflevel->npix_x) + surf->blk_w - 1) / surf->blk_w;
1490 surflevel->nblk_y = (next_power_of_two(surflevel->npix_y) + surf->blk_h - 1) / surf->blk_h;
1491 surflevel->nblk_z = (next_power_of_two(surflevel->npix_z) + surf->blk_d - 1) / surf->blk_d;
2489 surf->array_size = next_power_of_two(surf->array_size);