From 2cf2312372ebde4168ae1e66a97d5c6b8daff1c3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 17 Oct 2013 17:14:13 +0100 Subject: [PATCH] sna: Fix computation of clip boxes for stipple uploads References: https://bugs.freedesktop.org/show_bug.cgi?id=67865 Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 4 ++-- 1 file 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,