diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-04 12:35:12 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-04 12:46:12 +0000 |
commit | 99ff83a3bebf1aa25c44a87f2c344307d20bc062 (patch) | |
tree | 964a43c214ba6f2a942e39dcb35ba218ac5c2695 | |
parent | a7c35fa4c3155d10ad75ac33aefb03dafa010aba (diff) |
sna: Prevent creation of bo purely for GTT mapping when wedged
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index c9f4add7..ff02849a 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -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, |