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:
parent
78425a1559
commit
698bd43e0f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue