From a05643eb670e91ab102465df799301def88faaf9 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 20 Aug 2012 10:46:14 +0100 Subject: [PATCH] sna: Remove unneeded source bo unref after __sna_render_pixmap_bo() As __sna_render_pixmap_bo() deliberately does not reference its returned bo, we need to avoid unreferencing it else we cause explosions later. Fixes regression from commit a13781d19defc97af6a279c11a85e33ef825020e Author: Chris Wilson Date: Sun Aug 19 09:45:12 2012 +0100 sna: Enable BLT composite functions to target CPU buffers Signed-off-by: Chris Wilson --- src/sna/sna_blt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c index f050669d..99671a9f 100644 --- a/src/sna/sna_blt.c +++ b/src/sna/sna_blt.c @@ -1850,11 +1850,9 @@ clear: if (!tmp->dst.bo) { DBG(("%s: fallback -- unaccelerated read back\n", __FUNCTION__)); - kgem_bo_destroy(&sna->kgem, bo); } else if (bo->snoop && tmp->dst.bo->snoop) { DBG(("%s: fallback -- can not copy between snooped bo\n", __FUNCTION__)); - kgem_bo_destroy(&sna->kgem, bo); } else { ret = prepare_blt_copy(sna, tmp, bo, alpha_fixup); if (fallback)