drm/nv50: align size of buffer object to the right boundaries.
authorMaarten Maathuis <madman2003@gmail.com>
Sun, 27 Dec 2009 11:22:07 +0000 (12:22 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 9 Feb 2010 22:19:34 +0000 (08:19 +1000)
commiteb1dba0ebaa5b7642b323fac148f9947522a48a8
tree5aaf08820f7b37235f04d79e7aadef9a80326930
parent5025b43120b629bdf11087a3c652dc9cbe172191
drm/nv50: align size of buffer object to the right boundaries.

- In the current situation the padding that is added is dangerous to write
  to, userspace could potentially overwrite parts of another bo.
- Depth and stencil buffers are supposed to be large enough in general so
  the waste of memory should be acceptable.
- Alternatives are hiding the padding from users or splitting vram into 2
  zones.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c