diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-23 19:49:18 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-23 19:51:00 +0000 |
commit | b20ae331566e92f1a995f49fd0760f020db25035 (patch) | |
tree | 2dcb0b6b4c5087d94d236a81eb2f596eda1365d1 | |
parent | 41739ff9517ca158d9f7b7ac82e5bacef62a3d68 (diff) |
sna: Switch to using spans based on use_wide_spans()
This just gives us a hook with which to conveniently enable or disable
the new code.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-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 c258812e..57a8439c 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -7814,7 +7814,8 @@ sna_poly_fill_polygon(DrawablePtr draw, GCPtr gc, if (!PM_IS_SOLID(draw, gc->planemask)) goto fallback; - if (sna_drawable_use_gpu_bo(draw, + if (use_wide_spans(draw, gc, &data.region.extents) && + sna_drawable_use_gpu_bo(draw, &data.region.extents, &data.damage)) { uint32_t color; |