sna: Do not create glyph caches if the gpu is wedged

As these will only be created in normal memory and never used.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-28 21:45:12 +00:00
parent 78425a1559
commit 698bd43e0f
1 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,9 @@ static Bool realize_glyph_caches(struct sna *sna)
DBG(("%s\n", __FUNCTION__));
if (sna->kgem.wedged || !sna->have_render)
return TRUE;
for (i = 0; i < ARRAY_SIZE(formats); i++) {
struct sna_glyph_cache *cache = &sna->render.glyph[i];
PixmapPtr pixmap;