From: Thomas Hellstrom Subject: [PATCH 10/10] ttm: Make sure system buffer objects has offset == 0. Date: Wed, 13 Jan 2010 22:28:45 +0100 Message-ID: <1263418125-7373-11-git-send-email-thellstrom@vmware.com> References: <1263418125-7373-1-git-send-email-thellstrom@vmware.com> <1263418125-7373-2-git-send-email-thellstrom@vmware.com> <1263418125-7373-3-git-send-email-thellstrom@vmware.com> <1263418125-7373-4-git-send-email-thellstrom@vmware.com> <1263418125-7373-5-git-send-email-thellstrom@vmware.com> <1263418125-7373-6-git-send-email-thellstrom@vmware.com> <1263418125-7373-7-git-send-email-thellstrom@vmware.com> <1263418125-7373-8-git-send-email-thellstrom@vmware.com> <1263418125-7373-9-git-send-email-thellstrom@vmware.com> <1263418125-7373-10-git-send-email-thellstrom@vmware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1263418125-7373-10-git-send-email-thellstrom@vmware.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: dri-devel@lists.sourceforge.net, airlied@redhat.com Cc: Thomas Hellstrom List-Id: dri-devel@lists.freedesktop.org This is a convention that the vmwgfx driver has come to rely on. Signed-off-by: Thomas Hellstrom --- 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 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; -- 1.6.2.5 ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev --