summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-21 18:18:32 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-21 18:18:32 +0100
commitc6e316eeba3008b351f2cd63829154f4672c5417 (patch)
treee72cd07428093a558eaef4e46e26d54703a5e129
parentf1e7248cb353d634f27d297059911168ce1a0762 (diff)
sna: Adjust hints to prefer rendering convex polygon with the GPU
Keep the general polygons as only using the GPU if necessary, until the cost of the routines is analysed. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 5bec59aa..0b0a3044 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -9274,7 +9274,7 @@ sna_poly_fill_polygon(DrawablePtr draw, GCPtr gc,
goto fallback;
if ((data.bo = sna_drawable_use_bo(draw,
- use_wide_spans(draw, gc, &data.region.extents),
+ (shape == Convex ? use_zero_spans : use_wide_spans)(draw, gc, &data.region.extents),
&data.region.extents,
&data.damage))) {
uint32_t color;