diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2010-01-13 22:28:45 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-01-14 12:20:04 +1000 |
commit | 354fb52cb6138de0e6cf84a0f6a7f3467586e390 (patch) | |
tree | fb82e886349c36bcf21afb51bf5fad9ead47d0a9 /drivers/gpu/drm/ttm | |
parent | d9f36a0051b7c0382107cb0342af1126a6eb627d (diff) | |
download | linux-stable-354fb52cb6138de0e6cf84a0f6a7f3467586e390.tar.gz linux-stable-354fb52cb6138de0e6cf84a0f6a7f3467586e390.tar.bz2 linux-stable-354fb52cb6138de0e6cf84a0f6a7f3467586e390.zip |
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.c | 3 |
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; |