summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/ttm/ttm_bo.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2010-01-14 00:28:45 +0300
committerDave Airlie <airlied@redhat.com>2010-01-14 05:20:04 +0300
commit354fb52cb6138de0e6cf84a0f6a7f3467586e390 (patch)
treefb82e886349c36bcf21afb51bf5fad9ead47d0a9 /drivers/gpu/drm/ttm/ttm_bo.c
parentd9f36a0051b7c0382107cb0342af1126a6eb627d (diff)
downloadlinux-354fb52cb6138de0e6cf84a0f6a7f3467586e390.tar.xz
drm/ttm: Make sure system buffer objects has offset == 0.
This is a convention that the vmwgfx driver has come to rely on. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_bo.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 7a64f07b1202..da3702135ada 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -426,7 +426,8 @@ moved:
bdev->man[bo->mem.mem_type].gpu_offset;
bo->cur_placement = bo->mem.placement;
spin_unlock(&bo->lock);
- }
+ } else
+ bo->offset = 0;
return 0;