Commit Graph

1977 Commits

Author SHA1 Message Date
Julien Cristau
b60708fb0e Upload to unstable 2012-02-09 21:16:57 +01:00
Julien Cristau
20446ebc6b Bump changelogs 2012-02-09 20:52:20 +01:00
Julien Cristau
00e59db614 pixman 0.24.4 release
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.9 (GNU/Linux)
 
 iEYEABECAAYFAk8zEZkACgkQmxfmIW/3wagcTwCgjGvmVz4suHSfs+OzQWEmBDqv
 dCYAnjcm0p9EaocqWhbUV2UfGC0NMX8A
 =wOcR
 -----END PGP SIGNATURE-----

Merge tag 'pixman-0.24.4' into debian-unstable

pixman 0.24.4 release
2012-02-09 20:48:25 +01:00
Søren Sandmann Pedersen
8bff730a98 Pre-release version bump to 0.24.4 2012-02-08 19:03:22 -05:00
Søren Sandmann Pedersen
c5c866a394 Revert "Reject trapezoids where top (botttom) is above (below) the edges"
Cairo 1.10 will sometimes generate trapezoids like this, so we can't
consider them invalid. Fixes bug 45009, reported by Michael Biebl.

This reverts commit 2437ae80e5.
2012-02-08 19:01:05 -05:00
Bobby Salazar
1ceb66750c iOS Runtime Detection Support For ARM NEON
This patch adds runtime detection support for the ARM NEON fast paths
for code compiled with the iOS SDK.
2012-02-08 19:01:03 -05:00
Cyril Brulebois
11ddc57db9 Upload to unstable. 2012-01-19 12:23:22 +01:00
Cyril Brulebois
cbde497236 Bump changelogs. 2012-01-19 12:21:28 +01:00
Cyril Brulebois
ed216c187b Merge branch 'upstream-unstable' into debian-unstable 2012-01-19 12:20:52 +01:00
Søren Sandmann Pedersen
7ccb0c45e5 Post-release version bump to 0.24.3 2012-01-18 16:06:05 -05:00
Søren Sandmann Pedersen
08070759c3 Pre-release version bump to 0.24.2 2012-01-18 15:49:24 -05:00
Søren Sandmann Pedersen
a9b4fa378b Fix bugs with alpha maps
The alpha channel from the alpha map must be inserted as the new alpha
channel when a scanline is fetched from an image. Previously the alpha
map would overwrite the buffer instead. This wasn't caught be the
alpha map test because it would only verify that the resulting alpha
channel was correct, and not pay attention to incorrect color
channels.
2012-01-18 15:37:36 -05:00
Alan Coopersmith
7dd2b8ee7e Make mmx code compatible with Solaris Studio 12.3 compilers
Rearranged some of the existing gcc & Intel compiler checks to allow
easier sharing of common cases among the compilers.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-01-18 15:37:26 -05:00
Søren Sandmann Pedersen
ee500cb2b1 Reject trapezoids where top (botttom) is above (below) the edges
When a trapezoid has a top/bottom that is above/below the left/right
edges, degenerate trapezoids become possible. For example the edge
could be very short and close to horizontal. If the bottom edge is far
below the bottom point of such a short edge, the result is that the
lower right corner of the trapezoid will be extremely far to the left.

This kind of trapezoid causes overflows in the rasterization code, so
change pixman_trapezoid_valid() to reject them.
2012-01-18 15:37:08 -05:00
Søren Sandmann Pedersen
1398a2fae4 Fix some signed overflow bugs
In the macros for the PDF blend modes, two comp1_t variables are
multiplied together and then used as if the result were a
comp4_t. When comp1_t is a uint8_t, this is fine because they are
promoted to int, and the product of two uint8_ts fits in an
int. However, when comp1_t is uint16, the product does not necessarily
fit in an int, so casts are necessary.

Fix for bug 43906, reported by Siarhei Siamashka.
2012-01-18 15:36:50 -05:00
Søren Sandmann Pedersen
419820cce6 pixman-image.c: Fix typo in pixman_image_set_transform()
A parenthesis was misplaced so that the size argument to memcmp() was
always 0. The bug is harmless except that the flags might be
unnecessarily recomputed in some cases.

A bug reporting this in Mozilla's fork was discovered here:

    https://bugzilla.mozilla.org/show_bug.cgi?id=710992
2012-01-18 15:36:34 -05:00
Colin Walters
5bd74a7c96 autogen.sh: Support GNOME Build API
http://people.gnome.org/~walters/docs/build-api.txt
2012-01-18 15:36:22 -05:00
Søren Sandmann Pedersen
dbb6148158 gradient-walker: For NONE repeats, when x < 0 or x > 1, set both colors to 0
ec7c9c2b68 introduced a bug where NONE gradients would be
misrendered, causing the area outside the gradient to be treated as a
(very) long fade to transparent.The problem was that a check for
positions outside the gradients were dropped in favor of relying on
the sentinels.

Aside from misrendering, this also caused a signed integer overflow
when the code would compute a stepper size based on MIN_INT32.

This patches fixes the issue by reinstating a check for these cases
and setting both the right and left colors to transparent black.
2012-01-18 15:36:13 -05:00
Bobby Salazar
b14fd2ad60 Android Runtime Detection Support For ARM NEON
This patch adds runtime detection support for the ARM NEON fast paths
for code compiled with the Android NDK. This is the only code change
needed to enable the ARM NEON pixman fast paths for the ever growing
Android platform (200 million+ smartphones, tablets, etc.). Just make
sure to #define USE_ARM_NEON in your makefile.
2012-01-18 15:35:41 -05:00
Naohiro Aota
3c87d862d9 Don't use non-POSIX test
test "$test_CFLAGS" == "" &&         \

may cause an error on some POSIX shells and uses a style which is not
consistent with the other tests in configure.ac

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=42588 and
https://bugs.gentoo.org/show_bug.cgi?id=387087
2012-01-18 15:35:30 -05:00
Søren Sandmann Pedersen
c19a09b314 Post-release version bump to 0.24.1 2012-01-18 15:35:09 -05:00
Cyril Brulebois
70dac03d59 Upload to unstable. 2011-11-07 18:13:55 +01:00
Cyril Brulebois
9c9bf5de9c Bump changelogs. 2011-11-07 18:13:36 +01:00
Cyril Brulebois
1e5a59c905 Merge branch 'upstream-unstable' into debian-unstable 2011-11-07 18:12:45 +01:00
Søren Sandmann Pedersen
973dc7d319 Pre-release version bump to 0.24.0 2011-11-06 16:10:33 -05:00
Alan Coopersmith
6bf590f385 Change MMX ldq_u to return _m64 instead of forcing all callers to cast
Sun/Oracle Studio compilers allow the pointers to be cast, but not the
non-pointer forms, causing pixman compiles to fail with many errors of:
"pixman-mmx.c", line 1411: invalid cast expression

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-04 13:41:30 -07:00
Jeff Muizelaar
5d7f5bc8ee Add definitions of INT64_MIN and INT64_MAX 2011-11-02 18:49:58 -04:00
Cyril Brulebois
afde156de5 Document what happened: pixman went to sid… 2011-11-01 16:06:39 +01:00
Cyril Brulebois
39102f8b3e Upload to experimental. 2011-11-01 12:29:25 +01:00
Cyril Brulebois
bfad5455b6 Bump changelogs. 2011-11-01 12:28:58 +01:00
Cyril Brulebois
eae1bc3667 Merge branch 'upstream-experimental' into debian-experimental 2011-11-01 12:28:26 +01:00
Søren Sandmann Pedersen
697cfe1537 Post-release version bump to 0.23.9 2011-10-29 05:51:54 -04:00
Søren Sandmann Pedersen
a0f1b56581 Pre-release version bump to 0.23.8 2011-10-29 05:33:44 -04:00
Søren Sandmann Pedersen
498138c293 Fix use of uninitialized fields reported by valgrind
In pixman-noop.c and pixman-sse2.c, we are accessing
image->bits.width/height without first making sure the image is a bits
image. The warning is harmless because we never act on this
information without checking that the image is a8r8g8b8, but valgrind
does warn about it.

In pixman-noop.c, just reorder the clauses in the if statement; in
pixman-sse2.c require images to have the FAST_PATH_BITS_IMAGE flag
set.
2011-10-25 12:00:19 -04:00
Julien Cristau
40a04cb1b6 Upload to experimental 2011-10-22 11:09:17 +02:00
Søren Sandmann Pedersen
6131707e8f Merge branch 'gradients' 2011-10-20 09:13:12 -04:00
Rico Tzschichholz
bdfdaaff5d Bump changelogs. 2011-10-19 17:44:08 +02:00
Rico Tzschichholz
bccb9afc56 Merge branch 'upstream-experimental' into debian-experimental 2011-10-19 17:24:45 +02:00
Taekyun Kim
3d4d705d2f ARM: NEON: Fix assembly typo error in src_n_8_8888
Binutils 2.21 does not complain about missing comma between ARM
register and alignement specifier in vld/vst instructions which
causes build error on binutils 2.20.
2011-10-18 21:50:18 +09:00
Taekyun Kim
19f118f41f ARM: NEON: Standard fast path src_n_8_8
Performance numbers of before/after on cortex-a8 @ 1GHz

- before
L1:  28.05  L2:  28.26  M: 26.97 (  4.48%)  HT: 19.79  VT: 19.14  R: 17.61  RT:  9.88 ( 101Kops/s)

- after
L1:1430.28  L2:1252.10  M:421.93 ( 75.48%)  HT:170.16  VT:138.03  R:145.86  RT: 35.51 ( 255Kops/s)
2011-10-18 13:16:50 +09:00
Taekyun Kim
4db9e2bc13 ARM: NEON: Standard fast path src_n_8_8888
Performance numbers of before/after on cortex-a8 @ 1GHz

- before
L1:  32.39  L2:  31.79  M: 30.84 ( 13.77%)  HT: 21.58  VT: 19.75  R: 18.83  RT: 10.46 ( 106Kops/s)

- after
L1: 516.25  L2: 372.00  M:193.49 ( 85.59%)  HT:136.93  VT:109.10  R:104.48  RT: 34.77 ( 253Kops/s)
2011-10-18 13:16:48 +09:00
Taekyun Kim
26659de6cd ARM: NEON: Instruction scheduling of bilinear over_8888_8_8888
Instructions are reordered to eliminate pipeline stalls and get
better memory access.

Performance of before/after on cortex-a8 @ 1GHz

<< 2000 x 2000 with scale factor close to 1.x >>
before : 40.53 Mpix/s
after  : 50.76 Mpix/s
2011-10-18 13:16:42 +09:00
Taekyun Kim
4481920f40 ARM: NEON: Instruction scheduling of bilinear over_8888_8888
Instructions are reordered to eliminate pipeline stalls and get
better memory access.

Performance of before/after on cortex-a8 @ 1GHz

<< 2000 x 2000 with scale factor close to 1.x >>
before : 50.43 Mpix/s
after  : 61.09 Mpix/s
2011-10-18 13:14:28 +09:00
Taekyun Kim
1cd916f3a5 ARM: NEON: Replace old bilinear scanline generator with new template
Bilinear scanline functions in pixman-arm-neon-asm-bilinear.S can
be replaced with new template just by wrapping existing macros.
2011-10-18 13:00:10 +09:00
Taekyun Kim
6682b2b359 ARM: NEON: Bilinear macro template for instruction scheduling
This macro template takes 6 code blocks.

1. process_last_pixel
2. process_two_pixels
3. process_four_pixels
4. process_pixblock_head
5. process_pixblock_tail
6. process_pixblock_tail_head

process_last_pixel does not need to update horizontal weight. This
is done by the template. two and four code block should update
horizontal weight inside of them. head/tail/tail_head blocks
consist unrolled core loop. You can apply instruction scheduling
to the tail_head blocks.

You can also specify size of the pixel block. Supported size is 4
and 8. If you want to use mask, give BILINEAR_FLAG_USE_MASK flags
to the template, then you can use register MASK. When using d8~d15
registers, give BILINEAR_FLAG_USE_ALL_NEON_REGS to make sure
registers are properly saved on the stack and later restored.
2011-10-18 13:00:06 +09:00
Taekyun Kim
b5e4355fa4 ARM: NEON: Some cleanup of bilinear scanline functions
Use STRIDE and initial horizontal weight update is done before
entering interpolation loop. Cache preload for mask and dst.
2011-10-18 13:00:02 +09:00
Søren Sandmann Pedersen
ec7c9c2b68 Simplify gradient_walker_reset()
The code that searches for the closest color stop to the given
position is duplicated across the various repeat modes. Replace the
switch with two if/else constructions, and put the search code between
them.
2011-10-15 10:50:20 -04:00
Søren Sandmann Pedersen
2d0da8ab8d Use sentinels instead of special casing first and last stops
When storing the gradient stops internally, allocate two more stops,
one before the beginning of the stop list and one after the
end. Initialize those stops based on the repeat property of the
gradient.

This allows gradient_walker_reset() to be simplified because it can
now simply pick the two closest stops to the position without special
casing the first and last stops.
2011-10-15 10:50:20 -04:00
Søren Sandmann Pedersen
84d6ca7c89 gradient walker: Correct types and fix formatting
The type of pos in gradient_walker_reset() and gradient_walker_pixel()
is pixman_fixed_48_16_t and not pixman_fixed_32_32. The types of the
positions in the walker struct are pixman_fixed_t and not int32_t, and
need_reset is a boolean, not an integer. The spread field should be
called repeat and have the type pixman_repeat_t.

Also fix some formatting issues, make gradient_walker_reset() static,
and delete the pointless PIXMAN_GRADIENT_WALKER_NEED_RESET() macro.
2011-10-15 10:50:14 -04:00
Søren Sandmann Pedersen
ace225b53d Add stable release / development snapshot to draft release notes
This will hopefully serve as a reminder to me that I should put this
information in the release notes.
2011-10-11 16:12:32 -04:00