xf86-video-intel: src/sna/sna_io.c
Chris Wilson
ickle at kemper.freedesktop.org
Mon Nov 4 12:16:11 CET 2013
src/sna/sna_io.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit ad3959324c02de2e73e7d1142d42248f7dbb4518
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Mon Nov 4 11:12:30 2013 +0000
sna: Only destroy the old GPU after successfully replacing it
Along the sna_replace__xor path we destroyed the priv->gpu_bo twice upon
successfully replacing it.
References: https://bugs.freedesktop.org/show_bug.cgi?id=70527
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c
index bad6052..75d9fe1 100644
--- a/src/sna/sna_io.c
+++ b/src/sna/sna_io.c
@@ -1304,7 +1304,6 @@ bool sna_write_boxes__xor(struct sna *sna, PixmapPtr dst,
if (wedged(sna))
return false;
-
can_blt = kgem_bo_can_blt(kgem, dst_bo) &&
(box[0].x2 - box[0].x1) * dst->drawable.bitsPerPixel < 8 * (MAXSHORT - 4);
extents = box[0];
@@ -1897,10 +1896,8 @@ sna_replace__xor(struct sna *sna, PixmapPtr pixmap,
pixmap->drawable.bitsPerPixel,
bo->tiling,
CREATE_GTT_MAP | CREATE_INACTIVE);
- if (new_bo) {
- kgem_bo_destroy(&sna->kgem, bo);
+ if (new_bo)
bo = new_bo;
- }
}
if (kgem_bo_can_map(&sna->kgem, bo) &&
More information about the xorg-commit
mailing list