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:
parent
41739ff951
commit
b20ae33156
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue