summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-04 12:35:12 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-04 12:46:12 +0000
commit99ff83a3bebf1aa25c44a87f2c344307d20bc062 (patch)
tree964a43c214ba6f2a942e39dcb35ba218ac5c2695
parenta7c35fa4c3155d10ad75ac33aefb03dafa010aba (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.c3
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,