sna: Prevent creation of bo purely for GTT mapping when wedged

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-01-04 12:35:12 +00:00
parent a7c35fa4c3
commit 99ff83a3be
1 changed files with 3 additions and 0 deletions

View File

@ -853,6 +853,9 @@ sna_pixmap_create_mappable_gpu(PixmapPtr pixmap)
struct sna *sna = to_sna_from_pixmap(pixmap);
struct sna_pixmap *priv = sna_pixmap(pixmap);;
if (wedged(sna))
return false;
assert(priv->gpu_bo == NULL);
priv->gpu_bo =
kgem_create_2d(&sna->kgem,