Don't forget to update buffer offset after validation.
authorEric Anholt <eric@anholt.net>
Thu, 16 Aug 2007 21:34:24 +0000 (14:34 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 16 Aug 2007 21:34:24 +0000 (14:34 -0700)
src/mesa/drivers/dri/common/dri_bufmgr_ttm.c

index 6e29199cd8085c64b87a565174838bfaf2f04d15..7f1e10fbc8b80d42a9a33eecba42b14fc96f7148 100644 (file)
@@ -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;
 }