diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-10 16:37:16 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-10 16:37:16 +0100 |
commit | 9b25eeee85d32223841640c3a39901e4b63707ce (patch) | |
tree | a7160883b9cb4000d273b11fc4da9ab1d21a7fa6 | |
parent | 224af800f695b50ba5a65b5a2b9ca1e7a88d4e1a (diff) |
sna: Do apply damage twice for miSpans.PolyFillRect
As the caller will apply the damage afterwards, we do not need to do the
accumulation in the miSpans callbacks and it presumes that its damage is
unaltered.
References: https://bugs.freedesktop.org/show_bug.cgi?id=77074
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index ab2908f5..83343b34 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -14873,17 +14873,17 @@ sna_poly_fill_rect__gpu(DrawablePtr draw, GCPtr gc, int n, xRectangle *r) if (gc_is_solid(gc, &color)) { (void)sna_poly_fill_rect_blt(draw, - data->bo, data->damage, + data->bo, NULL, gc, color, n, r, &data->region.extents, true); } else if (gc->fillStyle == FillTiled) { (void)sna_poly_fill_rect_tiled_blt(draw, - data->bo, data->damage, + data->bo, NULL, gc, n, r, &data->region.extents, true); } else { (void)sna_poly_fill_rect_stippled_blt(draw, - data->bo, data->damage, + data->bo, NULL, gc, n, r, &data->region.extents, true); } |