summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-20 10:46:14 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-20 10:46:14 +0100
commita05643eb670e91ab102465df799301def88faaf9 (patch)
treee35687e3aaa1c5a78ee64903780440372aa31ea3
parentc80db9bc2ef0a37a4abb78c9ef667c8b36ab6fba (diff)
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 <chris@chris-wilson.co.uk> Date: Sun Aug 19 09:45:12 2012 +0100 sna: Enable BLT composite functions to target CPU buffers Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_blt.c2
1 files changed, 0 insertions, 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)