glamor: Improve the performance of line fallbacks.
authorEric Anholt <eric@anholt.net>
Thu, 9 Jan 2014 03:36:30 +0000 (11:36 +0800)
committerEric Anholt <eric@anholt.net>
Mon, 17 Mar 2014 21:30:57 +0000 (14:30 -0700)
commit923c8db7ed1adfe4689f0a36496262faca44b79d
treee1301a5998db44456bcc74d22e6499b7116adefd
parentb6953045566dae15437d4220e68986db7a6b4ca7
glamor: Improve the performance of line fallbacks.

If the lines aren't solid-filled vert/horiz solid-filled rectangles,
we fall back.  libreoffice has some diagonal lines, and the
performance of the fallback path was atrocious.  Just fall back to
mi's spans instead, so that we don't do an upload/download.

Improves x11perf -seg100 by 863.652% +/- 9.8968% (n=5)

Signed-off-by: Eric Anholt <eric@anholt.net>
glamor/glamor_polylines.c