i965: save the offset of target buffer after last execution, not relocatee buffer.
authorXiang, Haihao <haihao.xiang@intel.com>
Tue, 22 Apr 2008 03:11:42 +0000 (11:11 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 22 Apr 2008 03:11:42 +0000 (11:11 +0800)
src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c

index ecf6a1ca6659345e9118c451a781c29458c9e53a..545913fa31bf1c2de570721c1c6484242f4ec577 100644 (file)
@@ -993,7 +993,7 @@ dri_ttm_bo_post_submit(dri_bo *bo)
        /* Continue walking the tree depth-first. */
        dri_ttm_bo_post_submit(r->target_buf);
 
-       r->last_target_offset = bo->offset;
+       r->last_target_offset = r->target_buf->offset;
     }
 }