[Pixman] [PATCH 0/6] Improvements for the nearest scaling, second try

Siarhei Siamashka siarhei.siamashka at gmail.com
Fri Sep 17 12:45:56 PDT 2010


This is the second revision of the nearest neigbour scaling patchset
posted earlier:
http://lists.freedesktop.org/archives/pixman/2010-September/000477.html

The changes since the last submission now include:
- the move of the nearest scaling related macros to 'pixman-fast-path.h' is
  done in a separate patch, as asked by Soeren
- performance improvements for the nearest neighbor scaling when NONE or PAD
  repeat is set and *actually used*

The SSE2 implementation of over_8888_8888 is used here mostly as an example
and may be rewritten or generalized later. Additionally, more ARM NEON and
SSE2 optimized scaled fast paths will need to be added after these initial
changes land to pixman git master.

Basically only REFLECT repeat support is now missing. And fast paths for any
other nearest neighbour scaled compositing operations without mask should be
relatively easy to add, also using SIMD optimizations when appropriate.

The same patches are also available at:
http://cgit.freedesktop.org/~siamashka/pixman/log/?h=nearest-scaling-simd-20100917

Scaling with mask and bilinear scaling can be the next optimization targets
after this step is done.

Siarhei Siamashka (6):
  Nearest scaling fast path macros moved to 'pixman-fast-path.h'
  Nearest scaling fast path macro split into two parts
  Introduce a fake PIXMAN_REPEAT_COVER constant
  PAD repeat support for fast scaling with nearest filter
  NONE repeat support for fast scaling with nearest filter
  SSE2 optimization for scaled over_8888_8888 operation with nearest
    filter

 pixman/Makefile.am        |    1 +
 pixman/pixman-fast-path.c |  268 +--------------------------
 pixman/pixman-fast-path.h |  443 +++++++++++++++++++++++++++++++++++++++++++++
 pixman/pixman-sse2.c      |  115 ++++++++++++
 4 files changed, 570 insertions(+), 257 deletions(-)
 create mode 100644 pixman/pixman-fast-path.h

-- 
1.7.2.2



More information about the Pixman mailing list