xf86-video-intel: src/sna/sna_accel.c

Chris Wilson ickle at kemper.freedesktop.org
Wed Jul 25 07:43:16 PDT 2012


 src/sna/sna_accel.c |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 954d9c6aca792098cb16a46b4ec8d5fc104b15a9
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Jul 25 15:41:29 2012 +0100

    sna: Initialise single-shot tile offsets before use
    
    As noted by the compiler amidst all the noise.
    
    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 94dcabf..66d3e93 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -9466,6 +9466,13 @@ sna_poly_fill_rect_tiled_8x8_blt(DrawablePtr drawable,
 
 		sna_damage_add_rectangles(damage, r, n, dx, dy);
 		if (n == 1) {
+			tx = (r->x - origin->x) % 8;
+			if (tx < 8)
+				tx = 8 - tx;
+			ty = (r->y - origin->y) % 8;
+			if (ty < 8)
+				ty = 8 - ty;
+
 			b = sna->kgem.batch + sna->kgem.nbatch;
 			b[0] = XY_PAT_BLT | tx << 12 | ty << 8 | 3 << 20 | (br00 & BLT_DST_TILED);
 			b[1] = br13;


More information about the xorg-commit mailing list