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@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-26 14:37:37 +00:00
parent 2934e778f0
commit 655a96cd5f
1 changed files with 3 additions and 0 deletions

View File

@ -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,