From 0420adfb9d92b691aabef4e0ccba3782417b4bf0 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 3 Dec 2013 12:10:23 +0000 Subject: 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(+) (limited to 'src/sna') diff --git a/src/sna/gen2_render.c b/src/sna/gen2_render.c index 3e907406..b539a815 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 e841396a..b3ee5673 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; } -- cgit v1.2.3