summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-10-17 17:14:13 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-10-17 17:14:13 +0100
commit2cf2312372ebde4168ae1e66a97d5c6b8daff1c3 (patch)
treeb15fbb36511521a6d3f88d34c898e5f8fd192d27
parent621eaba0d5c524878a8803ad285cb9b4b33654a7 (diff)
sna: Fix computation of clip boxes for stipple uploads
References: https://bugs.freedesktop.org/show_bug.cgi?id=67865 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 4f44490a..d63b1f40 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -12304,9 +12304,9 @@ sna_poly_fill_rect_stippled_1_blt(DrawablePtr drawable,
void *ptr;
unclipped.x1 = r->x + drawable->x;
- unclipped.x2 = bound(unclipped.x2, r->width);
+ unclipped.x2 = bound(unclipped.x1, r->width);
unclipped.y1 = r->y + drawable->y;
- unclipped.y2 = bound(unclipped.y2, r->height);
+ unclipped.y2 = bound(unclipped.y1, r->height);
r++;
c = find_clip_box_for_y(clip_start,