diff options
-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, |