diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-11-10 07:42:42 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-11-10 07:46:53 +0000 |
commit | 0267f5902ddaceced870dcd8451ef8729e33e5c2 (patch) | |
tree | f243617074b51e8d5e366f73070f9b8775d6b898 /src | |
parent | 9ea242c275a70351abcfbc0f8f3233c122abecbe (diff) |
sna: Check after filtering points before submitting boxes to be drawn
As we clip the points when converting them into GPU boxes, check that we
have something to draw before submitting the commands.
Reported-by: Ian Gay <gay@sfu.ca>
References: https://bugs.freedesktop.org/show_bug.cgi?id=86075
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_accel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 0ef56fb9..13f52e4a 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -7251,7 +7251,8 @@ sna_poly_point__gpu(DrawablePtr drawable, GCPtr gc, b++; } } while (--nbox); - fill.boxes(data->sna, &fill, box, b - box); + if (b != box) + fill.boxes(data->sna, &fill, box, b - box); } fill.done(data->sna, &fill); } |