From 2b77a8696b14bc36be359bf858189ade5fab8511 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 16 Aug 2007 14:34:24 -0700 Subject: [PATCH] Don't forget to update buffer offset after validation. --- src/mesa/drivers/dri/common/dri_bufmgr_ttm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c b/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c index 6e29199cd80..7f1e10fbc8b 100644 --- a/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c +++ b/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c @@ -262,6 +262,8 @@ dri_ttm_validate(dri_bo *buf, unsigned int flags) /* XXX: add to fence list for sanity checking */ } + buf->offset = ttm_buf->drm_bo.offset; + return err; } -- 2.30.2