Always return a valid function from lookup_composite()
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 12 Jan 2013 08:28:32 +0000 (08:28 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 27 Jan 2013 14:04:15 +0000 (14:04 +0000)
commit520230914bbb56473b872f2ef7dc59092f426415
treeb33984db43cf688f7eca077f22cc534ba0c4a9c6
parentb283c864a3de039f9213adaf402c6597db12d0c4
Always return a valid function from lookup_composite()

We never expect to fail to find the appropriate function as the
general_composite_rect should always match. So if somehow we fallthrough
the search, emit a _pixman_log_error() and return a dummy function.

Note that we remove some conditionals and a level of indentation hence a
large amount of code movement. This also reveals that in a few places we
are duplicating stack variables that can be eliminated later.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
pixman/pixman-fast-path.c
pixman/pixman-glyph.c
pixman/pixman-implementation.c
pixman/pixman-private.h
pixman/pixman.c