summaryrefslogtreecommitdiff
path: root/src/drm/cairo-drm-intel.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-01-28 13:23:39 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-01-28 13:23:39 +0000
commit5f0a0088af784157d8efe149ed073c8fa010e648 (patch)
tree201829f967e2ac11d2195318ea3cdcb5c8ed89b8 /src/drm/cairo-drm-intel.c
parent78cd9471200c69c8b3737e859260f4552145d958 (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.c3
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;