From 698bd43e0f7a59bcce6601b0c96df85935e54bb3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 28 Dec 2011 21:45:12 +0000 Subject: [PATCH] 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 --- 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 405af87e..95836feb 100644 --- a/src/sna/sna_glyphs.c +++ b/src/sna/sna_glyphs.c @@ -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;