diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-28 13:23:39 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-28 13:23:39 +0000 |
commit | 5f0a0088af784157d8efe149ed073c8fa010e648 (patch) | |
tree | 201829f967e2ac11d2195318ea3cdcb5c8ed89b8 /src/drm/cairo-drm-intel.c | |
parent | 78cd9471200c69c8b3737e859260f4552145d958 (diff) |
drm-intel: Unmap a full glyph cache.
When we swap a full glyph cache for a fresh one, be sure to unmap the
old one prior to release.
Diffstat (limited to 'src/drm/cairo-drm-intel.c')
-rw-r--r-- | src/drm/cairo-drm-intel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drm/cairo-drm-intel.c b/src/drm/cairo-drm-intel.c index 984dcd81..334c07c8 100644 --- a/src/drm/cairo-drm-intel.c +++ b/src/drm/cairo-drm-intel.c @@ -1182,6 +1182,9 @@ intel_get_glyph (intel_device_t *device, assert (cache->buffer.bo->exec != NULL); + if (cache->buffer.bo->virtual != NULL) + intel_bo_unmap (cache->buffer.bo); + _cairo_rtree_reset (&cache->rtree); intel_bo_destroy (device, cache->buffer.bo); cache->buffer.bo = NULL; |