diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-28 21:45:12 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-28 21:45:12 +0000 |
commit | 698bd43e0f7a59bcce6601b0c96df85935e54bb3 (patch) | |
tree | d6f18fb71ef00d5701d016b78afeb20d64329326 | |
parent | 78425a15597079c0549de0fa1bbbdbebcf9eaf28 (diff) |
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>
-rw-r--r-- | src/sna/sna_glyphs.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |