diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-04-21 17:13:16 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-04-27 11:49:16 -0700 |
commit | 11b60973bca1bc9bbda44be4c695e22d28d8ca4a (patch) | |
tree | 9b889a4a167a1787fc83b05570c381e65211d39c /libdrm/intel | |
parent | 412d370b9ae4b2882691863a1c5e13a507574e92 (diff) |
intel: NULL fake bo block when freeing in evict_all
Fixes assertion failures on later use of the object.
Diffstat (limited to 'libdrm/intel')
-rw-r--r-- | libdrm/intel/intel_bufmgr_fake.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdrm/intel/intel_bufmgr_fake.c b/libdrm/intel/intel_bufmgr_fake.c index e1f98d6c..969c03dc 100644 --- a/libdrm/intel/intel_bufmgr_fake.c +++ b/libdrm/intel/intel_bufmgr_fake.c @@ -1467,8 +1467,10 @@ drm_intel_bufmgr_fake_evict_all(drm_intel_bufmgr *bufmgr) assert(DRMLISTEMPTY(&bufmgr_fake->on_hardware)); DRMLISTFOREACHSAFE(block, tmp, &bufmgr_fake->lru) { + drm_intel_bo_fake *bo_fake = (drm_intel_bo_fake *)block->bo; /* Releases the memory, and memcpys dirty contents out if necessary. */ free_block(bufmgr_fake, block, 0); + bo_fake->block = NULL; } pthread_mutex_unlock(&bufmgr_fake->lock); |