summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2007-08-16 14:34:24 -0700
committerEric Anholt <[email protected]>2007-08-16 14:34:24 -0700
commit2b77a8696b14bc36be359bf858189ade5fab8511 (patch)
treec5f534966919f27320b4214aee5f33be9a702e98 /src/mesa/drivers/dri
parent327e6551197e6069150200878b4e6e7a595e2bee (diff)
Don't forget to update buffer offset after validation.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/common/dri_bufmgr_ttm.c2
1 files changed, 2 insertions, 0 deletions
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;
}