diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2011-10-04 20:13:15 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-10-05 10:17:09 +0100 |
commit | 5f898d99de9248d421615205e81c468b4d8117e0 (patch) | |
tree | 29b515a305bac5df71ca0c588f578a173e462e1c /drivers/gpu/drm/vmwgfx | |
parent | 497a3ff9877424108020c7091c7886b364c0486e (diff) |
vmwgfx: Make sure the reserved area is at the start of vram
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index c14eb764e096..7ee8b8e12185 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -717,6 +717,9 @@ static int vmw_surface_dmabuf_pin(struct vmw_framebuffer *vfb) vmw_framebuffer_to_vfbs(&vfb->base); unsigned long size = vfbs->base.base.pitch * vfbs->base.base.height; int ret; + struct ttm_placement ne_placement = vmw_vram_ne_placement; + + ne_placement.lpfn = (size + (PAGE_SIZE - 1)) / PAGE_SIZE; vfbs->buffer = kzalloc(sizeof(*vfbs->buffer), GFP_KERNEL); if (unlikely(vfbs->buffer == NULL)) |