xf86-video-intel: src/sna/sna_accel.c
Chris Wilson
ickle at kemper.freedesktop.org
Mon Feb 10 06:22:06 PST 2014
src/sna/sna_accel.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 2f99070708ce8f591c31e1e908809a0ce551c13f
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Mon Feb 10 14:19:53 2014 +0000
sna: Clear GPU damage flag for 1x1 writes onto a clear buffer
An optimisation for 1x1 reads of a clear buffer lead to a bug whereby
the damage for a 1x1 write would not be tracked correctly (conflicting
full GPU damage vs partial CPU damage).
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 3919997..531dd40 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2688,7 +2688,8 @@ sna_drawable_move_region_to_cpu(DrawablePtr drawable,
box++;
} while (--n);
- if (region->extents.x2 - region->extents.x1 > 1 ||
+ if (flags & MOVE_WRITE ||
+ region->extents.x2 - region->extents.x1 > 1 ||
region->extents.y2 - region->extents.y1 > 1) {
sna_damage_subtract(&priv->gpu_damage, region);
priv->clear = false;
More information about the xorg-commit
mailing list