From 0420adfb9d92b691aabef4e0ccba3782417b4bf0 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 3 Dec 2013 12:10:23 +0000 Subject: [PATCH] sna/gen2,3: Unmap the old GPU bo when replacing due to render target constaints Signed-off-by: Chris Wilson --- src/sna/gen2_render.c | 1 + src/sna/gen3_render.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c index 3e90740..b539a81 100644 --- a/src/sna/gen2_render.c +++ b/src/sna/gen2_render.c @@ -1609,6 +1609,7 @@ gen2_composite_set_target(struct sna *sna, if (bo == NULL) return false; + sna_pixmap_unmap(op->dst.pixmap, priv); kgem_bo_destroy(&sna->kgem, priv->gpu_bo); priv->gpu_bo = bo; diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c index e841396..b3ee567 100644 --- a/src/sna/gen3_render.c +++ b/src/sna/gen3_render.c @@ -3197,6 +3197,7 @@ gen3_composite_set_target(struct sna *sna, if (bo == NULL) return false; + sna_pixmap_unmap(op->dst.pixmap, priv); kgem_bo_destroy(&sna->kgem, priv->gpu_bo); priv->gpu_bo = bo; } -- 2.7.4