diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-20 12:12:39 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-20 12:17:27 +0000 |
commit | d3a4f5db149888239b78df1b9fcc5379b1603005 (patch) | |
tree | 5932b42434a7e461a94dfc61dfab60a8dc7499f0 /src/sna/kgem.c | |
parent | ac52a1fcd11a3ab10e1843ed2d19f9cf818de4c1 (diff) |
sna: Fixup the refcnt to avoid an assert
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.c')
-rw-r--r-- | src/sna/kgem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 598df781..4ae7d140 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -991,6 +991,7 @@ static void kgem_finish_partials(struct kgem *kgem) DBG(("%s: discarding unused partial array: %d/%d\n", __FUNCTION__, bo->used, bo->alloc)); + bo->base.refcnt = 0; /* for valgrind */ kgem_bo_free(kgem, &bo->base); } |