drm/nouveau: store bo's page size in nouveau_bo
authorBen Skeggs <bskeggs@redhat.com>
Mon, 6 Jun 2011 04:15:46 +0000 (14:15 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jun 2011 05:59:27 +0000 (15:59 +1000)
commitf91bac5bf694e8060b7473fb0aefb8de09aa9595
tree5c9ca0841bd831f3287bd686160c7e555a2391c3
parent111af5c100fa0c0b94301f719dd22dab87f5d0a4
drm/nouveau: store bo's page size in nouveau_bo

Was previously assuming a page size of 4KiB unless a VMA was present to
override it.  Eventually, a buffer won't necessarily have a VMA at all at
some stages of its life, so we need to store this info elsewhere.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_mem.c