]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitadae796197e2514201eb140f3c83af0fe55a9960
tree5aaf08820f7b37235f04d79e7aadef9a80326930
parent5120965c6b78aa6e209610d18206d5930e2bf667
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