drm/nouveau: better alignment of bo sizes and use roundup instead of ALIGN
authorMaarten Maathuis <madman2003@gmail.com>
Fri, 25 Dec 2009 17:51:17 +0000 (18:51 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 10 Jan 2010 23:06:36 +0000 (09:06 +1000)
commit1c7059e4f36e76c72cefbb6c9bd2bcf45c12e777
tree3bf415ce10c2f5760cb73f2a6a69480f6a71eee1
parent111b459af191891f49682f21e11f348703cd8bdd
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>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_fbcon.c