xf86-video-intel: src/sna/sna_glyphs.c

Chris Wilson ickle at kemper.freedesktop.org
Mon Dec 26 06:39:01 PST 2011


 src/sna/sna_glyphs.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 655a96cd5f12ff7fe593e7da5f34c7c92ef9b87d
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Dec 26 14:37:37 2011 +0000

    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 <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c
index 3ec5b2d..405af87 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,


More information about the xorg-commit mailing list