Commit Graph

2041 Commits

Author SHA1 Message Date
Jeff Muizelaar
0c3dd54f6b Unify scanline buffer types
Change the type of the stack based scanline buffer to uint8_t to match the rest
of the variables. Also premultiply the scanline buffer size by sizeof(uint32_t)
because the bpp can be either sizeof(uint32_t) or sizeof(uint64_t).
2008-11-21 21:35:30 -05:00
Jeff Muizelaar
e201504da8 [arm-simd] Fix typo found by 王新拓
'and r7, %[upper_component_mask]' appears to by a short hand for
'and r7, %[upper_component_mask], %[upper_component_mask]'. Use
the explicit form to avoid any confusion.
2008-11-20 10:41:40 -05:00
David Woodhouse
cd2a79ab81 Less fragile Linux altivec detection
Instead of using really fragile SIGILL trapping, use a more reliable
detection method by checking what the CPU really supports.

https://bugzilla.redhat.com/show_bug.cgi?id=472000
https://bugzilla.redhat.com/show_bug.cgi?id=451831
2008-11-18 16:01:11 -05:00
Søren Sandmann Pedersen
b1b0507c24 Make comments about PIXMAN_REFLECT more useful 2008-11-10 23:18:09 -05:00
Søren Sandmann Pedersen
056c6d97db Various formatting fixes, and a simplification of the adjusting code 2008-11-05 23:58:56 -05:00
Søren Sandmann Pedersen
607562b2a6 Inline the fetchers 2008-11-05 17:51:55 -05:00
Søren Sandmann Pedersen
7a1717e605 Use fetch_nearest() instead of having duplicated code 2008-11-05 17:23:45 -05:00
Søren Sandmann Pedersen
49647e7054 Do the fetch_bilinear inline rather than in separate functions 2008-11-05 17:12:22 -05:00
Søren Sandmann Pedersen
c8b314c43b Make use of fetch_bilinear() in the various bilinear implementations 2008-11-05 16:59:56 -05:00
Søren Sandmann Pedersen
bad1ee39d3 Add fetch_bilinear function 2008-11-05 16:38:33 -05:00
Søren Sandmann Pedersen
95f2af9584 Add missing pixman-arm-simd.[ch] files.
Pointed out by Chris Ball and Adrian Bunk.
2008-11-03 13:09:02 -05:00
Søren Sandmann Pedersen
1d5bb7a3f1 Inlucde inttypes.h on digital Tru64
Bug 18007, reported by Joonas Pihlaja.
2008-10-31 15:08:03 -04:00
Adrian Bunk
f9db3ec7b9 Rename the current ARM code to ARM SIMD
This code is only for CPUs supporting the SIMD instructions, not for all ARM
CPUs.

I stumbled above the recent commit with the ARM SIMD code while preparing a
patch that models the patch from #13445 after the MMX and SSE2 cases:

The ARM SIMD option currently uses --disable-arm, although this code is only
for CPUs >= ARMv6. That's as if one would call the option to disable the SSE2
code --disable-x86.

This patch therefore renames the configure option and the function and file
names to arm-simd/arm_simd.
2008-10-31 14:59:30 -04:00
Alan Coopersmith
b9e2dd783e Define force_inline for compilers other than gcc & MS Visual C 2008-10-29 18:13:59 -07:00
Jeff Muizelaar
3a775610f2 Cleanup inline definitions
Replace all inline definitions with a common one in pixman-private.h. Also, add
'force_inline' and replace all existing uses of 'inline' as a forced inline
with 'force_inline'.
2008-10-29 17:14:41 -07:00
Søren Sandmann Pedersen
d68ebb7701 Remove unused AddMul_256 macro 2008-10-15 18:46:38 -04:00
Benjamin Otte
8f5cb6916d unswitch red and blue
The previous code assumed a color format of ABGR when naming the
variables. The true color format is ARGB. This did not cause any bugs
because no functions rely on the order of colors so far. This patch
renames the variables just to avoid confusion.
2008-10-13 00:05:40 +02:00
Benjamin Otte
f5d4e01c39 update .gitignore 2008-10-08 21:21:58 +02:00
Benjamin Otte
69dadf2312 force alignment of arg pointer in potential SSE users
Fix for bug 17824
2008-10-08 21:18:12 +02:00
David Müller
1c5de7b058 Move _mm_empty() to correct place
The "fbComposeSetupSSE2()" function is guarding most of its code
depending on the capabilities of the CPU, but unfortunately the call
to "_mm_empty()" is not part of this code path but executed
unconditionally.  This results in a "illegal instruction" crash on
non-MMX / non-SSE capable CPUs caused by the the "emms" instruction
(embedded in "_mm_empty()").

Fix bug 17729.
2008-09-23 07:45:51 -04:00
Søren Sandmann Pedersen
aadcc7f011 Update TODO 2008-09-21 11:01:07 -04:00
Julien Cristau
aeff42b323 Prepare changelog for upload 2008-09-21 17:01:04 +02:00
Julien Cristau
9a87dbfab2 Bump shlibs to 0.11.10 as well. 2008-09-21 17:00:58 +02:00
Søren Sandmann Pedersen
9cb60e142b Make use of SSE2 blt/fill in more places 2008-09-21 11:00:33 -04:00
Julien Cristau
d69d2705d1 Merge tag 'pixman-0.12.0'
Conflicts:

	configure.ac
2008-09-19 10:29:05 +02:00
Julien Cristau
7f4a393339 Bump pixman_format_supported_source's version in the symbols file
depth 30 formats were added in 0.11.10
2008-09-19 10:22:18 +02:00
Julien Cristau
3e299f87b7 New upstream release. 2008-09-19 10:21:17 +02:00
Julien Cristau
1b95efba96 Merge branch 'upstream-experimental' into debian-experimental 2008-09-19 10:19:29 +02:00
Søren Sandmann Pedersen
b5a9002d2e Inline fetch functions in pixman-transformed.c
There was significant performance overhead associated with indirect
call to the fetch functions, so inline them.

Also, the old code assumed that if the number of rectangles in the
source clip was 1, then the clip was identical to the image
boundaries. Fix that by running a full region_contains_point()
whenever the source clip is different from pict->common.full_region.

Based on a patch from Antoine Azar.
2008-09-18 19:28:31 -04:00
Jeff Muizelaar
a57e7bf34a Fix inner branch code.
The entire source must be 0 not just the alpha component.
Fix some comments too.
2008-09-18 11:44:36 -04:00
Søren Sandmann Pedersen
54ee41a660 Post release version bump 2008-09-18 06:53:11 -04:00
Søren Sandmann Pedersen
24de3b74f4 Pre-release version bump 2008-09-18 06:53:11 -04:00
Vladimir Vukicevic
7180230d4d Add SRC x888x0565 C fast path 2008-09-17 16:01:31 -04:00
Jeff Muizelaar
d0b181f347 Add support for ARMv6 SIMD fastpaths. 2008-09-17 15:53:20 -04:00
Søren Sandmann Pedersen
412b0d5cbc Pre-release version bump 2008-09-17 14:03:23 -04:00
Søren Sandmann Pedersen
3f5d6f90b7 Don't include stdio.h 2008-09-17 09:50:57 -04:00
Søren Sandmann Pedersen
eba4020920 [sse2] Fix rounding bug in conversion from 565 to 8888
When converting from 565 to 8888, replicate the topmost bits instead
of appending zeros.
2008-09-14 14:58:00 -04:00
Søren Sandmann Pedersen
6f00d98f87 Fix for bug 17477.
over_2x128 was changing the alphaLo and alphaHi arguments, causing
stripes.
2008-09-09 10:49:56 -04:00
Søren Sandmann Pedersen
bf76505cc6 Update TODO 2008-09-07 00:40:09 -04:00
Søren Sandmann Pedersen
da18a5675b Extend clip-test to demonstrate a bug in source clipping 2008-09-07 00:13:10 -04:00
Søren Sandmann Pedersen
00f3d6ef22 Fix bug in pixman_image_is_opaque()
Non-repeating gradient images would be reported as opaque. Also add
new test program to test source clipping.
2008-09-06 23:49:25 -04:00
Søren Sandmann Pedersen
d5b4fd7e11 Update RELEASING 2008-09-06 06:17:32 -04:00
Søren Sandmann Pedersen
35fcdf352a Bump release 2008-09-06 06:15:31 -04:00
Søren Sandmann Pedersen
5e7388540f Check for __sun || __sun in pixman.h. Update TODO
Reported by Bernd Nies.
2008-09-06 05:14:18 -04:00
Søren Sandmann Pedersen
f369d612b3 Use error instead of #error in a couple of other places 2008-09-06 04:33:16 -04:00
Peter O'Gorman
f921c8c57f Minor portability fixes
Use AC_C_INLINE to figure out `inline'.
IRIX compiler does not exit with a non-zero exit status when it sees #error
2008-09-06 04:30:08 -04:00
Frédéric Plourde
e2cbe1a0a4 Win32 build system fixes
Signed-off-by: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
2008-09-04 16:30:21 -04:00
Søren Sandmann Pedersen
ed862f1b2f Make sure pixman-combine{32,64}.h are disted 2008-09-04 16:21:08 -04:00
Søren Sandmann Pedersen
f9d3f372f9 Rename pixman-sse.h pixman-sse2.h 2008-08-24 00:40:16 -04:00
Søren Sandmann Pedersen
fdff58cfa2 A few other renamings of SSE->SSE2 2008-08-23 23:59:49 -04:00