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)
committerDave Airlie <airlied@redhat.com>
Mon, 11 Jan 2010 04:41:10 +0000 (14:41 +1000)
commitc2b82924bda0c3de2b49bd3a4d8b6725721820bc
tree52953304977301464772d800468e5998aafc6061
parent8f71c29e442e013212a98e2b37eb1074c4d1134f
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