From: Thomas Hellstrom Date: Wed, 13 Jan 2010 21:28:45 +0000 (+0100) Subject: drm/ttm: Make sure system buffer objects has offset == 0. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=354fb52cb6138de0e6cf84a0f6a7f3467586e390;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Dave Airlie --- 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;