From ec8b36f01030fd2fa67595f2aef4ca568b060899 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Wed, 5 Aug 2009 18:18:37 -0400 Subject: [PATCH] Don't change the constant source in fast_composite_over_n_8888_0565. --- pixman/pixman-fast-path.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pixman/pixman-fast-path.c b/pixman/pixman-fast-path.c index 40b7f9c..ce97800 100644 --- a/pixman/pixman-fast-path.c +++ b/pixman/pixman-fast-path.c @@ -619,11 +619,11 @@ fast_composite_over_n_8888_0565_ca (pixman_implementation_t *imp, int32_t width, int32_t height) { - uint32_t src, srca; - uint16_t src16; - uint16_t *dst_line, *dst; - uint32_t d; - uint32_t *mask_line, *mask, ma; + uint32_t src, srca, s; + uint16_t src16; + uint16_t *dst_line, *dst; + uint32_t d; + uint32_t *mask_line, *mask, ma; int dst_stride, mask_stride; uint16_t w; @@ -667,10 +667,12 @@ fast_composite_over_n_8888_0565_ca (pixman_implementation_t *imp, d = *dst; d = CONVERT_0565_TO_0888 (d); - UN8x4_MUL_UN8x4 (src, ma); + s = src; + + UN8x4_MUL_UN8x4 (s, ma); UN8x4_MUL_UN8 (ma, srca); ma = ~ma; - UN8x4_MUL_UN8x4_ADD_UN8x4 (d, ma, src); + UN8x4_MUL_UN8x4_ADD_UN8x4 (d, ma, s); *dst = CONVERT_8888_TO_0565 (d); } -- 2.7.4