[PATCH] Fix stripiness in rect blending.

Jonathan Morton jmorton at sd070.hel.movial.fi
Fri Jun 12 01:39:13 PDT 2009


---
 pixman/pixman-arm-neon.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pixman/pixman-arm-neon.c b/pixman/pixman-arm-neon.c
index 0c05f64..ba6c08f 100644
--- a/pixman/pixman-arm-neon.c
+++ b/pixman/pixman-arm-neon.c
@@ -1825,14 +1825,14 @@ static inline void PlainOver565_8pix_neon(
 	"	vshrn.u16 d2, q0, #8                 @ unpack red from framebuffer pixels	\n"
 	"	vshrn.u16 d4, q0, #3                 @ unpack green				\n"
 	"	vsli.u16  q3, q0, #5                 @ duplicate framebuffer blue bits		\n"
-	"	vmov      q0, q12                    @ retrieve foreground red   \n"
 	"	vsri.u8   d2, d2, #5                 @ duplicate red bits (extend 5 to 8)	\n"
-	"	vmov      q1, q13                    @ retrieve foreground green \n"
 	"	vsri.u8   d4, d4, #6                 @ duplicate green bits (extend 6 to 8)	\n"
-	"	vmov      q2, q14                    @ retrieve foreground blue  \n"
 	"	vshrn.u16 d6, q3, #2                 @ unpack extended blue (truncate 10 to 8)	\n"
+	"	vmov      q0, q12                    @ retrieve foreground red   \n"
 	"	vmlal.u8  q0, d2, d18                @ blend red - my kingdom for a four-operand MLA \n"
+	"	vmov      q1, q13                    @ retrieve foreground green \n"
 	"	vmlal.u8  q1, d4, d18                @ blend green               \n"
+	"	vmov      q2, q14                    @ retrieve foreground blue  \n"
 	"	vmlal.u8  q2, d6, d18                @ blend blue                \n"
 	"	subs      %[count], %[count], #1     @ decrement/test loop counter		\n"
 	"	vsri.16   q0, q1, #5                 @ pack green behind red			\n"
-- 
1.5.6.3


--=-bkMtaA+0MOqSOuejvH0Q--



More information about the cairo mailing list