From 655a96cd5f12ff7fe593e7da5f34c7c92ef9b87d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 26 Dec 2011 14:37:37 +0000 Subject: [PATCH] sna: Mark the glyph cache as being unpageable In order to prevent it falling foul of the inactive pixmap reaper, we need to mark the pixmap as pinned. Signed-off-by: Chris Wilson --- src/sna/sna_glyphs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c index 3ec5b2dc..405af87e 100644 --- a/src/sna/sna_glyphs.c +++ b/src/sna/sna_glyphs.c @@ -172,6 +172,9 @@ static Bool realize_glyph_caches(struct sna *sna) if (!pixmap) goto bail; + /* Prevent the cache from ever being paged out */ + sna_pixmap(pixmap)->pinned = true; + component_alpha = NeedsComponent(pPictFormat->format); picture = CreatePicture(0, &pixmap->drawable, pPictFormat, CPComponentAlpha, &component_alpha,