aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2010-01-13 22:28:45 +0100
committerDave Airlie <airlied@redhat.com>2010-01-14 12:20:04 +1000
commit354fb52cb6138de0e6cf84a0f6a7f3467586e390 (patch)
treefb82e886349c36bcf21afb51bf5fad9ead47d0a9 /drivers/gpu/drm/ttm
parentd9f36a0051b7c0382107cb0342af1126a6eb627d (diff)
downloadkernel_samsung_tuna-354fb52cb6138de0e6cf84a0f6a7f3467586e390.zip
kernel_samsung_tuna-354fb52cb6138de0e6cf84a0f6a7f3467586e390.tar.gz
kernel_samsung_tuna-354fb52cb6138de0e6cf84a0f6a7f3467586e390.tar.bz2
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')
-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 7a64f07..da37021 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;