platform/upstream/pixman.git
16 years agoSimplify cpu feature check
Luca Barbato [Wed, 23 Apr 2008 23:03:08 +0000 (01:03 +0200)]
Simplify cpu feature check

16 years agoRefactor path selection
Luca Barbato [Wed, 23 Apr 2008 22:41:16 +0000 (00:41 +0200)]
Refactor path selection

16 years agoForce inlining
Luca Barbato [Wed, 23 Apr 2008 22:36:51 +0000 (00:36 +0200)]
Force inlining

16 years agoUnbreak vmx pixman
Luca Barbato [Sat, 12 Apr 2008 11:16:46 +0000 (13:16 +0200)]
Unbreak vmx pixman

16 years agoMerge branch 'master' into vmx
Luca Barbato [Sat, 12 Apr 2008 07:53:24 +0000 (09:53 +0200)]
Merge branch 'master' into vmx

Conflicts:

pixman/pixman-pict.c

16 years agoSimplify handling compiler handling in MMX code
Søren Sandmann [Sat, 12 Apr 2008 04:22:35 +0000 (00:22 -0400)]
Simplify handling compiler handling in MMX code

Instead of using the parameters --param inline-unit-growth=10000 and
--param large-function-growth=10000", just make the inline functions
__always_inline__.

Also support Intel's compiler in pixman-mmx.c.

Based on a patch by Serhat <ubunturk@gmail.com>

16 years agoUse a macro to append _accessors to things.
Aaron Plattner [Fri, 4 Apr 2008 00:27:08 +0000 (17:27 -0700)]
Use a macro to append _accessors to things.

Signed-off-by: Søren Sandmann <sandmann@redhat.com>
16 years agoGenerate 64-bit combining functions.
Aaron Plattner [Wed, 2 Apr 2008 00:26:03 +0000 (17:26 -0700)]
Generate 64-bit combining functions.

Copy some macros from pixman-private.h into combine.inc and update them to
generate 64-bit versions as appropriate.  Add a rule to generate
pixman-combine64.c and add it to the build.

Signed-off-by: Søren Sandmann <sandmann@redhat.com>
16 years agoReplace hardcoded numbers and uint*_t in combine.inc.
Aaron Plattner [Tue, 1 Apr 2008 23:31:26 +0000 (16:31 -0700)]
Replace hardcoded numbers and uint*_t in combine.inc.

The masks and shifts have been replaced with preprocessor defines generated by
combine.pl.  The uint*_t types have been replaced with comp4_t, comp2_t, and
comp1_t depending on how many components the value is supposed to hold.

Signed-off-by: Søren Sandmann <sandmann@redhat.com>
16 years agoTack 32 onto the ends of the combining function types.
Aaron Plattner [Mon, 31 Mar 2008 23:42:53 +0000 (16:42 -0700)]
Tack 32 onto the ends of the combining function types.

Signed-off-by: Søren Sandmann <sandmann@redhat.com>
16 years agoMove combining routines into combine.inc and add a Perl rule to generate it.
Aaron Plattner [Mon, 31 Mar 2008 23:33:09 +0000 (16:33 -0700)]
Move combining routines into combine.inc and add a Perl rule to generate it.

This will eventually be used to search & replace types and mask/shift
calculations to generate a wide version of these functions.

Signed-off-by: Søren Sandmann <sandmann@redhat.com>
16 years agoMove combining macros into pixman-combine.c.
Aaron Plattner [Mon, 31 Mar 2008 23:09:44 +0000 (16:09 -0700)]
Move combining macros into pixman-combine.c.

Signed-off-by: Søren Sandmann <sandmann@redhat.com>
16 years agoRequire GCC 3.4 for SSE and SSE2.
Søren Sandmann [Thu, 10 Apr 2008 01:39:29 +0000 (21:39 -0400)]
Require GCC 3.4 for SSE and SSE2.

Also include <emmintrin.h> in the SSE2 test and use SSE_FLAGS rather than MMX_FLAGS

Reported by Dave Yeo.

16 years agoFix bug in FbStore_b2g3r3
Søren Sandmann [Wed, 9 Apr 2008 01:58:00 +0000 (21:58 -0400)]
Fix bug in FbStore_b2g3r3

16 years agoOptimize operators based on source or dest opacity.
Antoine Azar [Sun, 6 Apr 2008 14:56:53 +0000 (10:56 -0400)]
Optimize operators based on source or dest opacity.

Check if we can replace our operator by a simpler one if the src or
dest are opaque The output operator should be mathematically
equivalent to the source.

16 years agoRevert "pixman-version.h is generated, don't distribute it"
Julien Cristau [Sun, 6 Apr 2008 15:12:12 +0000 (17:12 +0200)]
Revert "pixman-version.h is generated, don't distribute it"

This reverts commit 4fd8910ea499eb484e29c44dbee7dbc029656e9c.

16 years agopixman-version.h is generated, don't distribute it
Julien Cristau [Fri, 4 Apr 2008 19:36:02 +0000 (21:36 +0200)]
pixman-version.h is generated, don't distribute it

16 years agoAdd CopyAreammx fast path for argb32 SRC xrgb32 and abgr32 SRC xbgr32
Frederic Plourde [Thu, 3 Apr 2008 20:52:54 +0000 (13:52 -0700)]
Add CopyAreammx fast path for argb32 SRC xrgb32 and abgr32 SRC xbgr32

16 years agoRemove prototype for nonexistent pixman_image_set_filter_params
Julien Cristau [Sun, 30 Mar 2008 18:53:42 +0000 (20:53 +0200)]
Remove prototype for nonexistent pixman_image_set_filter_params

16 years agoGet rid of pixman_composeFunctions_accessors.
Aaron Plattner [Fri, 28 Mar 2008 19:26:18 +0000 (12:26 -0700)]
Get rid of pixman_composeFunctions_accessors.

The combining functions operate on scratch memory, so they don't need the access
wrappers.  There's also no reason not to use the MMX combining functions in the
accessor path.

16 years agoFix test build when srcdir != builddir.
Aaron Plattner [Fri, 28 Mar 2008 19:16:07 +0000 (12:16 -0700)]
Fix test build when srcdir != builddir.

The tests were including pixman.h, but pixman.h couldn't find pixman-version.h
because it was in $(top_builddir)/pixman rather than $(top_srcdir)/pixman.

16 years agoPost-release version bump
Søren Sandmann Pedersen [Fri, 28 Mar 2008 09:23:34 +0000 (05:23 -0400)]
Post-release version bump

16 years agoFix log generation pixman-0.10.0
Søren Sandmann Pedersen [Thu, 27 Mar 2008 14:08:35 +0000 (10:08 -0400)]
Fix log generation

16 years agoBump version to 0.10.0.
Søren Sandmann Pedersen [Thu, 27 Mar 2008 14:07:11 +0000 (10:07 -0400)]
Bump version to 0.10.0.

Also a bunch of changes to the release make targets

16 years agoMake username configurable; add Makefile.win32 to EXTRA_DIST
Søren Sandmann Pedersen [Thu, 27 Mar 2008 12:37:29 +0000 (08:37 -0400)]
Make username configurable; add Makefile.win32 to EXTRA_DIST

16 years agoFix up unsigned long long/ullong usage
Vladimir Vukicevic [Wed, 26 Mar 2008 23:10:43 +0000 (16:10 -0700)]
Fix up unsigned long long/ullong usage

A few stray "unsigned long long"s were in place, along with
a ullong typedef outside of the appropriate ifdef.

16 years agoMake it distcheck
Søren Sandmann [Wed, 26 Mar 2008 06:20:42 +0000 (02:20 -0400)]
Make it distcheck

16 years agoMove version functions from pixman-version.c into pixman-utils.c.
Søren Sandmann [Wed, 26 Mar 2008 05:49:56 +0000 (01:49 -0400)]
Move version functions from pixman-version.c into pixman-utils.c.

Delete pixman-version.c

16 years agoMake pixman-version.h print an error if you include it by itself
Søren Sandmann [Wed, 26 Mar 2008 03:11:19 +0000 (23:11 -0400)]
Make pixman-version.h print an error if you include it by itself

16 years agoUpdate TODO
Søren Sandmann [Wed, 26 Mar 2008 03:07:03 +0000 (23:07 -0400)]
Update TODO

16 years agoEliminate duplicate case values that were breaking the compilation.
Carl Worth [Wed, 26 Mar 2008 02:43:40 +0000 (19:43 -0700)]
Eliminate duplicate case values that were breaking the compilation.

16 years agoNew API: pixman_format_supported_destination and pixman_format_supported_source
Carl Worth [Tue, 25 Mar 2008 20:12:29 +0000 (13:12 -0700)]
New API: pixman_format_supported_destination and pixman_format_supported_source

These functions allow for callers to use the PIXMAN_FORMAT macro to
construct a format code and to then determine if the resulting code
is supported by pixman for either destination or source surfaces.

16 years agoAdd pixman_version function and related macros
Carl Worth [Mon, 24 Mar 2008 21:51:09 +0000 (14:51 -0700)]
Add pixman_version function and related macros

The complete new API here makes available compile-tim version checks:

PIXMAN_VERSION
PIXMAN_VERSION_STRING
PIXMAN_VERSION_ENCODE

as well as run-time version checks:

pixman_version()
pixman_version_string()

16 years agoIncrement pixman version to 0.9.7
Carl Worth [Mon, 24 Mar 2008 19:00:46 +0000 (12:00 -0700)]
Increment pixman version to 0.9.7

This represents the in-development state, (so that the next release
will be 0.9.8 with an even-number micro component).

16 years agoDocument incrementing the micro version immediately after a release
Carl Worth [Mon, 24 Mar 2008 18:58:33 +0000 (11:58 -0700)]
Document incrementing the micro version immediately after a release

This is a cairo-like scheme where the version number is incremented
both immediately before and immediately after a release.

16 years agoOnly define pixman_have_sse() as function if USE_SSE2 is also defined
Vladimir Vukicevic [Tue, 25 Mar 2008 18:45:56 +0000 (11:45 -0700)]
Only define pixman_have_sse() as function if USE_SSE2 is also defined

.. otherwise it's already a macro evaluating to FALSE.

16 years agoMake configure message alike the mmx/sse/sse2 ones
Luca Barbato [Sun, 23 Mar 2008 15:12:31 +0000 (16:12 +0100)]
Make configure message alike the mmx/sse/sse2 ones

16 years agoUpdate vmx
Luca Barbato [Sun, 23 Mar 2008 15:04:26 +0000 (16:04 +0100)]
Update vmx

16 years agoupdate patch
Luca Barbato [Sat, 22 Mar 2008 10:28:48 +0000 (11:28 +0100)]
update patch

16 years agoMove fbFetchTransformed and friends into pixman-transformed.c.
Aaron Plattner [Sat, 22 Mar 2008 01:59:45 +0000 (18:59 -0700)]
Move fbFetchTransformed and friends into pixman-transformed.c.

16 years agoMove pixmanFetchSourcePict and friends into pixman-source.c.
Aaron Plattner [Sat, 22 Mar 2008 01:18:50 +0000 (18:18 -0700)]
Move pixmanFetchSourcePict and friends into pixman-source.c.

16 years agoMove fetch, fetchPixel, and store routines into pixman-access.c.
Aaron Plattner [Sat, 22 Mar 2008 01:06:54 +0000 (18:06 -0700)]
Move fetch, fetchPixel, and store routines into pixman-access.c.

16 years agoGet rid of fbPrepareAccess and fbFinishAccess, since the former was unused and neithe...
Aaron Plattner [Sat, 22 Mar 2008 00:13:32 +0000 (17:13 -0700)]
Get rid of fbPrepareAccess and fbFinishAccess, since the former was unused and neither one did anything anyway.

16 years agoRename pixman-compose-operators.c to pixman-combine.c and fix the build.
Aaron Plattner [Fri, 21 Mar 2008 21:15:34 +0000 (14:15 -0700)]
Rename pixman-compose-operators.c to pixman-combine.c and fix the build.

Add pixman-combine.c to the source list.  Make the functions in it static.  Call
fbCombineInU through the PIXMAN_COMPOSE_FUNCTIONS table.  Declare the functions
tables as extern in pixman-private.h.

16 years ago[PATCH] Moved all composition operators from pixman-compose.c to their own c/h file
Antoine Azar [Thu, 21 Feb 2008 08:38:46 +0000 (03:38 -0500)]
[PATCH] Moved all composition operators from pixman-compose.c to their own c/h file

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
16 years agoFix computation of x_offset in pixman_add_traps.
Kamalneet Singh [Wed, 19 Mar 2008 14:02:11 +0000 (10:02 -0400)]
Fix computation of x_offset in pixman_add_traps.

16 years agoFix the SSE related AMD64 build breakage
nmiell@gmail.com [Sat, 15 Mar 2008 05:23:19 +0000 (22:23 -0700)]
Fix the SSE related AMD64 build breakage

The introduction of pixman_have_sse() copied the #ifdef __amd64__
found around pixman_have_mmx() in pixman-mmx.c but didn't include the
equivalents of the macros in pixman-mmx.h. As a result, the AMD64 link
fails because the pixman_have_sse() function doesn't exist.

I also introduced header inclusion guards to pixman-mmx.h and
pixman-sse.h while I was at it.

16 years agoFix typo; include pixman-sse.h
Søren Sandmann [Fri, 14 Mar 2008 23:24:28 +0000 (19:24 -0400)]
Fix typo; include pixman-sse.h

16 years agoRequire MMX and MMX_Extensions for SSE. Various code style fixes.
Søren Sandmann [Fri, 14 Mar 2008 23:20:34 +0000 (19:20 -0400)]
Require MMX and MMX_Extensions for SSE. Various code style fixes.

16 years agoAdd build system support for SSE2.
Rodrigo Kumpera [Fri, 14 Mar 2008 23:11:17 +0000 (19:11 -0400)]
Add build system support for SSE2.

16 years agoEnable/fix MMX compilation under Win32 with Visual Studio
Frederic Plourde [Thu, 13 Mar 2008 21:24:08 +0000 (14:24 -0700)]
Enable/fix MMX compilation under Win32 with Visual Studio

16 years agoAdd rounding epsilon for NEAREST filter after transformation, not before.
Søren Sandmann [Tue, 11 Mar 2008 03:41:52 +0000 (23:41 -0400)]
Add rounding epsilon for NEAREST filter after transformation, not before.

For nearest filtering, the transformed location must be rounded to the
nearest sample. For locations that precisely in the middle between two
samples, we round down by adding -epsilon to the coordinates.

Before, we would do this on untransformed coordinates. This patch
changes it to happen after transformation. It also clarifies the
difference between sample locations and rounding.

Reported by Robert O'Callahan.

16 years agoFixed transformed/untransformed cases of extend_pad by using fbfetchtransformed in...
Antoine Azar [Wed, 5 Mar 2008 23:27:11 +0000 (15:27 -0800)]
Fixed transformed/untransformed cases of extend_pad by using fbfetchtransformed in all cases and making sure no fast path can be taken.

16 years agoUpdate TODO
Søren Sandmann [Fri, 29 Feb 2008 23:32:44 +0000 (18:32 -0500)]
Update TODO

16 years agoFix EXTEND_PAD for untransformed sources
Antoine Azar [Tue, 26 Feb 2008 21:36:22 +0000 (16:36 -0500)]
Fix EXTEND_PAD for untransformed sources

16 years agoFix another NULL dereference in pixman-compose.c, reported by Joel
Søren Sandmann Pedersen [Tue, 26 Feb 2008 01:12:42 +0000 (20:12 -0500)]
Fix another NULL dereference in pixman-compose.c, reported by Joel
Bosveld.

Update TODO.

16 years agoFix a NULL pointer dereference in fbFetchFromNRectangles().
Bertram Felgenhauer [Thu, 14 Feb 2008 15:40:54 +0000 (16:40 +0100)]
Fix a NULL pointer dereference in fbFetchFromNRectangles().
As pointed out by Soeren Sandmann Pedersen, calling
pixman_region_contains_point with a NULL box argument leads to a crash.
Also fix a few warnings.

16 years agoRefactor fbFetchTransformed()
Antoine Azar [Tue, 29 Jan 2008 10:53:03 +0000 (11:53 +0100)]
Refactor fbFetchTransformed()

16 years agoInclude only pixman-private.h, not pixman.h, in local .c files
Vladimir Vukicevic [Sun, 27 Jan 2008 22:49:12 +0000 (14:49 -0800)]
Include only pixman-private.h, not pixman.h, in local .c files

This is so that changes (such as symbol renames) can take place in
pixman-private and ensure that they're included before the prototypes from
pixman.h.  pixman-private.h includes pixman.h right at the start.

16 years agoexport pixman_transform_point_3d function
Bertram Felgenhauer [Wed, 23 Jan 2008 15:08:48 +0000 (16:08 +0100)]
export pixman_transform_point_3d function

16 years agoA tiny amount of ifdef reduction.
Carl Worth [Wed, 23 Jan 2008 00:33:58 +0000 (16:33 -0800)]
A tiny amount of ifdef reduction.

Just moving two common assignments outside the condition to
drop the #else part.

16 years agoMerge commit 'inte/sampling'
Carl Worth [Wed, 23 Jan 2008 00:31:44 +0000 (16:31 -0800)]
Merge commit 'inte/sampling'

16 years agoIgnore test/fetch-test
Carl Worth [Tue, 30 Oct 2007 20:03:18 +0000 (13:03 -0700)]
Ignore test/fetch-test

16 years agoAdd release-publish target and RELEASING instructions
Carl Worth [Tue, 30 Oct 2007 19:52:19 +0000 (12:52 -0700)]
Add release-publish target and RELEASING instructions

16 years agoeliminate a special case in fbRasterizeEdges{4,8}.
Bertram Felgenhauer [Tue, 22 Jan 2008 07:00:05 +0000 (08:00 +0100)]
eliminate a special case in fbRasterizeEdges{4,8}.

16 years agofix cairo's a1-traps-sample test
Bertram Felgenhauer [Tue, 22 Jan 2008 06:57:54 +0000 (07:57 +0100)]
fix cairo's  a1-traps-sample  test
For 1 bit alpha targets, the left and right boundaries of edges were
not rounded correctly.

16 years agofix cairo's a1-image-sample test
Bertram Felgenhauer [Sat, 19 Jan 2008 12:29:56 +0000 (13:29 +0100)]
fix cairo's  a1-image-sample  test
Move the sampling point for image surfaces very slightly so that it's in
the upper left quadrant of the pixel.

16 years agoAvoid use of C++ keyword xor in header
Alp Toker [Tue, 15 Jan 2008 21:34:57 +0000 (16:34 -0500)]
Avoid use of C++ keyword xor in header

16 years agoRemove trailing ; in SETUP_YV12 macro
Vladimir Vukicevic [Wed, 16 Jan 2008 00:51:59 +0000 (16:51 -0800)]
Remove trailing ; in SETUP_YV12 macro

Causes compilation problems with MSVC.

16 years agoRemove last CVS $Id$ tags
Vladimir Vukicevic [Wed, 7 Nov 2007 00:15:01 +0000 (16:15 -0800)]
Remove last CVS $Id$ tags

16 years agoDon't use the pixbuf fast paths when the source picture has alpha. Bug
Søren Sandmann [Thu, 20 Dec 2007 05:23:18 +0000 (00:23 -0500)]
Don't use the pixbuf fast paths when the source picture has alpha. Bug
13650, reported by Wu Nian.

16 years agoMerge branch 'master' of git://anongit.freedesktop.org/pixman
Luca Barbato [Sat, 15 Dec 2007 23:38:16 +0000 (00:38 +0100)]
Merge branch 'master' of git://anongit.freedesktop.org/pixman

16 years agoGuard MMX get_fast_path() with pixman_have_mmx()
Søren Sandmann [Fri, 7 Dec 2007 23:59:54 +0000 (18:59 -0500)]
Guard MMX get_fast_path() with pixman_have_mmx()

16 years agoUse -fvisibility=hidden by default.
Søren Sandmann [Mon, 3 Dec 2007 18:14:42 +0000 (13:14 -0500)]
Use -fvisibility=hidden by default.

Add a PIXMAN_EXPORT macro that expands to the appropriate GCC magic.
Various formatting fixes.

16 years agoMake the tables static; remove unused flag
Søren Sandmann [Sun, 2 Dec 2007 03:50:05 +0000 (22:50 -0500)]
Make the tables static; remove unused flag

16 years agoSet maskRepeat to FALSE when the function is NEED_SOLID_MASK
Søren Sandmann [Sun, 2 Dec 2007 02:56:25 +0000 (21:56 -0500)]
Set maskRepeat to FALSE when the function is NEED_SOLID_MASK

16 years agoConditionalize MMX code with USE_MMX
Søren Sandmann [Sun, 2 Dec 2007 01:55:56 +0000 (20:55 -0500)]
Conditionalize MMX code with USE_MMX

16 years agoAdd some commented-out plain C fast paths.
Søren Sandmann [Sun, 2 Dec 2007 01:54:13 +0000 (20:54 -0500)]
Add some commented-out plain C fast paths.

16 years agoDelete switch of doom.
Søren Sandmann [Sun, 2 Dec 2007 01:46:29 +0000 (20:46 -0500)]
Delete switch of doom.

16 years agoCheck for correct op.
Søren Sandmann [Sun, 2 Dec 2007 01:41:49 +0000 (20:41 -0500)]
Check for correct op.

16 years agoAdd code to locate fast paths. Comment out switch of doom.
Søren Sandmann [Sun, 2 Dec 2007 01:35:03 +0000 (20:35 -0500)]
Add code to locate fast paths. Comment out switch of doom.

16 years agoBeginning of the end for the Switch of Doom.
Søren Sandmann [Sun, 2 Dec 2007 00:56:26 +0000 (19:56 -0500)]
Beginning of the end for the Switch of Doom.

Add tables with information about the MMX and plain-C fast paths.
Update TODO.

17 years agoTrack name change from pixman.pc to pixman-1.pc in .gitignore
Carl Worth [Tue, 30 Oct 2007 18:48:31 +0000 (11:48 -0700)]
Track name change from pixman.pc to pixman-1.pc in .gitignore

17 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/pixman into yuv-porting
Alan Hourihane [Wed, 24 Oct 2007 20:39:34 +0000 (21:39 +0100)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/pixman into yuv-porting

17 years agoBump version number pixman-0.9.6
Søren Sandmann Pedersen [Wed, 24 Oct 2007 19:48:45 +0000 (15:48 -0400)]
Bump version number

17 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/pixman into yuv-porting
Alan Hourihane [Thu, 18 Oct 2007 16:33:43 +0000 (17:33 +0100)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/pixman into yuv-porting

Conflicts:

pixman/pixman-compose.c
pixman/pixman.h

17 years agoOnly compile with -msse on x86-64.
Søren Sandmann [Thu, 18 Oct 2007 00:01:27 +0000 (20:01 -0400)]
Only compile with -msse on x86-64.

17 years agoMake stride signed in various places. This should fix some the
Søren Sandmann [Wed, 17 Oct 2007 23:20:55 +0000 (19:20 -0400)]
Make stride signed in various places. This should fix some the
crashers that people have reported in bug 12398.

17 years agoRemove comma from enumerator list. Bug 12621, reported by Matt Kraai.
Søren Sandmann [Wed, 17 Oct 2007 22:43:13 +0000 (18:43 -0400)]
Remove comma from enumerator list. Bug 12621, reported by Matt Kraai.

17 years agoAdd README file based on text from Bjorn Lindquist
Søren Sandmann [Wed, 17 Oct 2007 22:40:28 +0000 (18:40 -0400)]
Add README file based on text from Bjorn Lindquist

17 years agoMerge branch 'master' of git+ssh://git.freedesktop.org/git/pixman into yuv-porting
Alan Hourihane [Wed, 17 Oct 2007 18:39:41 +0000 (19:39 +0100)]
Merge branch 'master' of git+ssh://git.freedesktop.org/git/pixman into yuv-porting

Conflicts:

pixman/pixman-image.c

17 years agoMerge branch 'master' of git://anongit.freedesktop.org/pixman
Luca Barbato [Mon, 1 Oct 2007 22:13:05 +0000 (22:13 +0000)]
Merge branch 'master' of git://anongit.freedesktop.org/pixman

17 years agoFixed the declaration of pixman_image_set_source_clipping().
Tilman Sauerbeck [Sat, 29 Sep 2007 20:45:42 +0000 (22:45 +0200)]
Fixed the declaration of pixman_image_set_source_clipping().

17 years ago[pixman-image] [mlk] Free the locally allocated bits.
Chris Wilson [Thu, 27 Sep 2007 11:46:46 +0000 (12:46 +0100)]
[pixman-image] [mlk] Free the locally allocated bits.

If we fail to allocate the image, remember to free the bits if we have
created the buffer on behalf of the caller.

17 years ago[pixman-image] Avoid a potential malloc(0).
Chris Wilson [Thu, 27 Sep 2007 11:44:44 +0000 (12:44 +0100)]
[pixman-image] Avoid a potential malloc(0).

Do not attempt to allocate bits if either the image width or height is
0 - Cairo has a habit of attempting to create such surfaces when
generating glyphs. The malloc(0) may return a NULL pointer and be treated
as an out-of-memory error.

17 years ago[pixman-image] Avoid integer overflow when allocating bits.
Chris Wilson [Thu, 27 Sep 2007 11:40:59 +0000 (12:40 +0100)]
[pixman-image] Avoid integer overflow when allocating bits.

Check for potential overflows at every step of the calculation of the
buffer size required for the pixels.

(Fixes https://bugs.freedesktop.org/show_bug.cgi?id=11627)

17 years agoFix special case selection when the mask has a transform
Jeff Muizelaar [Thu, 20 Sep 2007 19:40:17 +0000 (15:40 -0400)]
Fix special case selection when the mask has a transform

http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commitdiff;h=c19ece1d8c32dc81740a4036a642661f54064e75
was a mismerge that avoided setting the maskTransform condition when the mask
has a transform.  This allowed a special case routine to be chosen when the
mask had a transform, which is not expected by the special case routines.

17 years agoPrevent promotion to unsigned when calculating strides.
José Fonseca [Mon, 17 Sep 2007 17:49:40 +0000 (18:49 +0100)]
Prevent promotion to unsigned when calculating strides.

17 years agoUse a consistent type for stride and more importantly, use always a signed type.
José Fonseca [Mon, 17 Sep 2007 16:08:31 +0000 (17:08 +0100)]
Use a consistent type for stride and more importantly, use always a signed type.

17 years agoRemove the macro magic from READ/WRITE macros.
José Fonseca [Fri, 14 Sep 2007 14:48:18 +0000 (15:48 +0100)]
Remove the macro magic from READ/WRITE macros.