]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3feaa39ce16be7bd2c12e8a051a7ed2247b055c
tree52953304977301464772d800468e5998aafc6061
parent2de3951f00d5e4f88107bf452207ad248d7004a1
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