drm/nouveau: better alignment of bo sizes and use roundup instead of ALIGN

- Aligning to block size should ensure that the extra size is enough.
- Using roundup, because not all sizes are powers of two.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
This commit is contained in:
Maarten Maathuis 2009-12-25 18:51:17 +01:00 • committed by Ben Skeggs
commit 1c7059e4f3
2 changed files with 8 additions and 4 deletions