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>
This commit is contained in:
Chris Wilson 2012-01-23 19:49:18 +00:00
parent 41739ff951
commit b20ae33156
1 changed files with 2 additions and 1 deletions

View File

@ -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;