fsogsmd: should now depend on msmcomm-specs rather than msmcommd-specs
[openembedded.git] / recipes / xorg-lib / pixman-0.21.2 / 0011-ARM-added-neon_composite_add_8888_8_8888-fast-path.patch
blob19f429bbf7d7d72c28a26248e4346121dcd514f7
1 From c3f48b6aa2f9354af02ffc8c938ec6753fdcbde3 Mon Sep 17 00:00:00 2001
2 From: Siarhei Siamashka <siarhei.siamashka@nokia.com>
3 Date: Sun, 28 Nov 2010 22:05:53 +0200
4 Subject: [PATCH 11/24] ARM: added 'neon_composite_add_8888_8_8888' fast path
6 ---
7 pixman/pixman-arm-neon-asm.S | 17 +++++++++++++++++
8 pixman/pixman-arm-neon.c | 4 ++++
9 2 files changed, 21 insertions(+), 0 deletions(-)
11 diff --git a/pixman/pixman-arm-neon-asm.S b/pixman/pixman-arm-neon-asm.S
12 index 81c0a34..11ef166 100644
13 --- a/pixman/pixman-arm-neon-asm.S
14 +++ b/pixman/pixman-arm-neon-asm.S
15 @@ -1595,6 +1595,23 @@ generate_composite_function_single_scanline \
17 /******************************************************************************/
19 +generate_composite_function \
20 + pixman_composite_add_8888_8_8888_asm_neon, 32, 8, 32, \
21 + FLAG_DST_READWRITE | FLAG_DEINTERLEAVE_32BPP, \
22 + 8, /* number of pixels, processed in a single block */ \
23 + 5, /* prefetch distance */ \
24 + default_init, \
25 + default_cleanup, \
26 + pixman_composite_add_8888_8888_8888_process_pixblock_head, \
27 + pixman_composite_add_8888_8888_8888_process_pixblock_tail, \
28 + pixman_composite_add_8888_8888_8888_process_pixblock_tail_head, \
29 + 28, /* dst_w_basereg */ \
30 + 4, /* dst_r_basereg */ \
31 + 0, /* src_basereg */ \
32 + 27 /* mask_basereg */
34 +/******************************************************************************/
36 .macro pixman_composite_out_reverse_8888_n_8888_process_pixblock_head
37 /* expecting source data in {d0, d1, d2, d3} */
38 /* destination data in {d4, d5, d6, d7} */
39 diff --git a/pixman/pixman-arm-neon.c b/pixman/pixman-arm-neon.c
40 index b01c3e0..eaf9787 100644
41 --- a/pixman/pixman-arm-neon.c
42 +++ b/pixman/pixman-arm-neon.c
43 @@ -92,6 +92,8 @@ PIXMAN_ARM_BIND_FAST_PATH_SRC_MASK_DST (neon, add_8_8_8,
44 uint8_t, 1, uint8_t, 1, uint8_t, 1)
45 PIXMAN_ARM_BIND_FAST_PATH_SRC_MASK_DST (neon, add_0565_8_0565,
46 uint16_t, 1, uint8_t, 1, uint16_t, 1)
47 +PIXMAN_ARM_BIND_FAST_PATH_SRC_MASK_DST (neon, add_8888_8_8888,
48 + uint32_t, 1, uint8_t, 1, uint32_t, 1)
49 PIXMAN_ARM_BIND_FAST_PATH_SRC_MASK_DST (neon, add_8888_8888_8888,
50 uint32_t, 1, uint32_t, 1, uint32_t, 1)
51 PIXMAN_ARM_BIND_FAST_PATH_SRC_MASK_DST (neon, over_8888_8_8888,
52 @@ -282,6 +284,8 @@ static const pixman_fast_path_t arm_neon_fast_paths[] =
53 PIXMAN_STD_FAST_PATH (ADD, a8, a8, a8, neon_composite_add_8_8_8),
54 PIXMAN_STD_FAST_PATH (ADD, r5g6b5, a8, r5g6b5, neon_composite_add_0565_8_0565),
55 PIXMAN_STD_FAST_PATH (ADD, b5g6r5, a8, b5g6r5, neon_composite_add_0565_8_0565),
56 + PIXMAN_STD_FAST_PATH (ADD, a8r8g8b8, a8, a8r8g8b8, neon_composite_add_8888_8_8888),
57 + PIXMAN_STD_FAST_PATH (ADD, a8b8g8r8, a8, a8b8g8r8, neon_composite_add_8888_8_8888),
58 PIXMAN_STD_FAST_PATH (ADD, a8r8g8b8, a8r8g8b8, a8r8g8b8, neon_composite_add_8888_8888_8888),
59 PIXMAN_STD_FAST_PATH (ADD, a8, null, a8, neon_composite_add_8_8),
60 PIXMAN_STD_FAST_PATH (ADD, a8r8g8b8, null, a8r8g8b8, neon_composite_add_8888_8888),
61 --
62 1.6.6.1