From: Eric Anholt Date: Thu, 16 Aug 2007 21:34:24 +0000 (-0700) Subject: Don't forget to update buffer offset after validation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b77a8696b14bc36be359bf858189ade5fab8511;p=mesa.git Don't forget to update buffer offset after validation. --- 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; }