sna: Add earlier guards against to wedged to sna_glyph_blt

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-11-04 15:24:57 +00:00
parent fc415ec3d3
commit 703cf8abdb
1 changed files with 5 additions and 0 deletions

View File

@ -6829,6 +6829,11 @@ sna_glyph_blt(DrawablePtr drawable, GCPtr gc,
DBG(("%s (%d, %d) x %d, transparent? %d, alu=%d\n",
__FUNCTION__, _x, _y, _n, transparent, rop));
if (wedged(sna)) {
DBG(("%s -- fallback, wedged\n", __FUNCTION__));
return false;
}
if (!sna_drawable_use_gpu_bo(drawable, &clip->extents, &damage))
return false;