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:
parent
2934e778f0
commit
655a96cd5f
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue