From 99ff83a3bebf1aa25c44a87f2c344307d20bc062 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 4 Jan 2012 12:35:12 +0000 Subject: sna: Prevent creation of bo purely for GTT mapping when wedged Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 3 +++ 1 file changed, 3 insertions(+) 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, -- cgit v1.2.3