Commit Graph

114 Commits

Author SHA1 Message Date
Eric Anholt
12563db59d Revert "Optimize out computing a gradient pixel if the mask value is 0."
This reverts cf46242e33 commit.  It wasn't meant
to be pushed to master yet, and doesn't work.
2006-07-03 12:52:27 -07:00
Eric Anholt
cf46242e33 Optimize out computing a gradient pixel if the mask value is 0.
Obtained from:	kdrive CVS (DavidR XGL fb/ megapatch)
2006-07-03 20:00:50 +02:00
Eric Anholt
63c169e3b1 Fix MMX Saturate implementation.
The code was expanding the source blend factor from the wrong channel.  Fixes
cairo's clip-operator test.
2006-06-27 04:14:03 +02:00
Eric Anholt
c7ac485a59 Remove the default case from fbcompose.c switches which should cover all cases.
Instead, stick the NULL return default case afterwards, so that the compiler can
warn us when we've got unimplemented cases.  Removes some unimplemented and
unused 8bpp, depth 4 picture format names.
2006-06-23 13:56:20 -07:00
Kristian Høgsberg
ed18d776f0 Fix #2488 for fb too: sample pixel center when transforming. 2006-06-21 16:22:14 -04:00
Kristan Høgsberg
4365d16c86 Pull over convolution filter fixes from xgl-0-0-1 branch.
Cherry-picking patches:

	8a5ea68800 and
	4d755fe142
2006-06-19 22:21:49 -04:00
Eric Anholt
569c808a23 Fix crash when using PICT_x4a4 by supplying an appropriate fbFetchPixel_x4a4. 2006-06-19 16:42:09 -07:00
Eric Anholt
5542665041 Clean up gcc warnings from picture format CARD32 -> enum change. 2006-06-19 15:11:56 -07:00
Eric Anholt
e793f0eeee Correct component ordering when fetching [ax]4b4g4r4 pixels.
Noticed by:	rendercheck
2006-06-19 15:11:55 -07:00
Adam Jackson
7893dadb2f Bug #6827: Fix texel fetch in fbFetchTransformed to avoid crashes. Still
not 100% correct, but better than 7.0. (Radek Doulik, Matthias Hopf)
2006-05-18 14:39:59 +00:00
Matthias Hopf
9e239a0df7 Bug #5796: Wrong fastpath selection for repeating sources. 2006-05-11 11:23:43 +00:00
Adam Jackson
291e89d4f2 Remove NEED_LINEHELPER BC cruft for pre-R6 DDXes. 2006-04-30 19:16:14 +00:00
Keith Packard
b37c515320 Add support for x4a4 format (depth 4 at 8bpp). Bug #6325. 2006-04-19 21:56:13 +00:00
Keith Packard
5dacc82232 Coverity #333, #334 - eliminate unncessary test for always true condition
in fbEvenStipple.
2006-04-07 02:20:11 +00:00
Ian Romanick
383c2e1e9e Include fbmmx.h in fb/fbwindow.c when USE_MMX is defined. Fixes build
problem on x86-64 resulting from fbHaveMMX being a macro instead of a
    function on that platform.
2006-04-05 19:52:12 +00:00
Adam Jackson
d9b8bfbfaf Bug #5478: More use of fbSOlidFillmmx. (Jim Huang) 2006-04-03 21:16:30 +00:00
Adam Jackson
b0e6778265 Bug #6346: Build fix when using gcc -mno-sse. (Jonathan Adamczewski) 2006-04-03 19:50:15 +00:00
Søren Sandmann Pedersen
5449634e3c Wed Mar 22 16:28:46 2006 Søren Sandmann <sandmann@redhat.com>
Use inline assembly for copy area, since gcc doesn't generate movq
    instructions.
2006-03-22 21:37:49 +00:00
Søren Sandmann Pedersen
5b3084c64f Wed Mar 22 16:05:09 2006 Søren Sandmann <sandmann@redhat.com>
Use inline assembly for solid fills, since gcc doesn't use the movq
    instructions.
2006-03-22 21:13:08 +00:00
Benjamin Herrenschmidt
049dca0f43 Remove useless line of code that contained a bug and triggered a gcc
warning. This variable will be overriden before being used anyway.
    (Bugzilla #5595)
2006-02-14 08:11:41 +00:00
Alan Coopersmith
a2a5254675 Add <string.h>, <stdlib.h>, and <stdio.h> to clear undefined function
warnings after the removal of libcwrapper headers.
2006-02-11 19:16:51 +00:00
Eric Anholt
c3d1403672 Remove libcwrapper usage from xorg server modules. The libcwrapper is only
of (marginal) use in the drivers, and that usage remains.
2006-02-10 22:00:30 +00:00
Adam Jackson
1c3f8727b2 More kdrive merge, fast path fbBlt to use memcpy() when possible. Good for
-5% to 60% speedup on XGetImage, and 0% to 10% speedup on copies within
    host memory. Based on work by Jaymz Julian.
2006-01-18 19:42:56 +00:00
Dave Airlie
b5356e0afa typo in last change 2006-01-18 07:00:50 +00:00
Dave Airlie
506eca5f57 Wrap sdk_HEADERS in if XORG as otherwise installing non-xorg servers
breaks.
2006-01-18 06:56:52 +00:00
Dave Airlie
8ccf4f2b8f This is a fix from David Reveman from the xserver tree, Make fbPadPixmap
work with negative stride
2006-01-18 06:49:17 +00:00
Eric Anholt
64ac7401ad Fix a copy'n'paste-o that would result in mis-rounding of the results of
several composite operators in A and G channels.
2005-12-28 10:43:02 +00:00
Adam Jackson
b37e738d5f Fix an fb regression on A8 pictures. (Fredrik Höglund) 2005-12-20 21:40:19 +00:00
Adam Jackson
62f3ef930a Bug #5258: Restore binary compatibility with 6.8.2's PictureRec. (Aaron
Plattner)
2005-12-09 18:35:21 +00:00
Adam Jackson
d6f98cbdb8 Bug #3944: Fix 24bpp packed pixel. (Søren Sandmann Pedersen) 2005-12-08 19:33:09 +00:00
Kevin E Martin
7c00afd0ec Define XFree86Server only where it is required. 2005-12-02 06:02:45 +00:00
Adam Jackson
4ec0b623b6 Bug #5093: Fix fb for non-SSE machines. (Xavier Bachelot) 2005-11-30 02:36:25 +00:00
Kevin E Martin
da5d66f2ff Fix usage of XFree86LOADER/XFree86Module/IN_MODULE and update loadable
module builds to reflect this change.
2005-11-29 16:39:33 +00:00
Kevin E Martin
89c661d61f Only use fbCopyAreammx if planemask is FB_ALLONES (fixes XTS5 XCopyArea
tests 22 and 23).
2005-11-04 21:37:32 +00:00
Kristian Høgsberg
dc6ac8e46f Add DGA configure option and add various files that we should be dist'ing.
Simplify xf86DefModeSet.c rule a bit.
2005-10-05 21:38:40 +00:00
Eric Anholt
b2e451b93c Correct the test for whether projective transform is necessary. Also, use
"affine" to describe the variable (universally) on suggestion from
    vektor. Corrects a rendercheck failure.
2005-10-04 03:44:14 +00:00
Adam Jackson
d51962378e Bug #3781: Only use fbCopyAreammx when alu == GXcopy. Originally Gentoo bug
#96053, patch by bartron@gmx.net.
2005-10-03 19:31:50 +00:00
Eric Anholt
84141fc299 Merge r1.36 of fbcompose.c from xserver CVS: Special case projective
transforms so we can avoid doing the expensive
64-bit math. Unroll the bilinear interpolation loops for an extra boost. I
    tested this with the up/downscaling cairo-benchmarks with Xvfb and saw
    a 12% +/- 4% decrease in time taken to run them.
2005-10-03 11:43:55 +00:00
Eric Anholt
c024262eae Merge r1.2 of fbedge.c from xserver CVS: Optimize spans where the same
value is being added to multiple pixels. This improves the speed of
    rendering wide trapezoids. I tested this with a small set of xlibs
    cairo-benchmarks with Xvfb and saw a 4% decrease in time taken to run
    them.
2005-10-03 10:20:29 +00:00
Eric Anholt
ecaa46380e Bugzilla #4616:
- Merge various fb/ bits of COMPOSITE support from xserver, which weren't
    necessary before due to cw hiding the issues. Fixes offset calculations
    for a number of operations, and may pull some fixes that cairo has
    wanted for XAA as well.
- Add a new call, miDisableCompositeWrapper(), which a DDX can call to keep
    cw from getting initialized from the damage code. While it would be
    cleaner to have each DDX initialize it if it needs it, we don't have
    control over all of them (e.g. nvidia).
- Use the miDisableCompositeWrapper() to keep cw from getting set up for
    screens using EXA, because EXA is already aware of composite. Avoiding
    cw improved performance 0-35% on operations tested by ajax in x11perf.
2005-10-02 08:28:27 +00:00
Matthieu Herrb
e270e6394b Bug #3822: out of bound reads in fbbltone and fbblt (Mark Kettenis, Thierry
Deval).
2005-10-01 17:53:38 +00:00
Søren Sandmann Pedersen
2ba865b3f5 Fri Sep 23 19:00:06 2005 Søren Sandmann <sandmann@redhat.com>
Apply patch from Ronald Wahl to make sure that the stack pointer is not
    modified at points where we access external variables. (Bug 4269).
2005-09-23 23:04:04 +00:00
Daniel Stone
c3d6799cee Bug #594: CAN-2005-2495: Fix exploitable integer overflow in pixmap
creation, where we could create a far smaller pixmap than we thought,
    allowing changes to arbitrary chunks of memory. (Søren Sandmann
    Pedersen)
2005-09-13 01:33:19 +00:00
Daniel Stone
b5d42012f9 Fix typo resulting in failure to swap between RGB/BGR properly. (Stephen P.
Becker)
2005-09-07 01:30:23 +00:00
Eric Anholt
f20e845b04 More 0 -> NULL for pointers missed in previous commit to this file. 2005-08-30 03:42:07 +00:00
Eric Anholt
7777d325a3 Apply an xserver patch from cworth: Avoid buffer ovverrun when a
trapezoid's right edge is on a pixel boundary.
2005-08-30 03:05:21 +00:00
Eric Anholt
e321f9e7ff Apply the xserver patch from vektor for bug #4208: Use NULL for pointers
instead of 0.
2005-08-30 03:01:38 +00:00
Daniel Stone
825a95a1fa Remove use of dix-config and xorg-config.h from public headers. 2005-08-24 11:18:35 +00:00
Søren Sandmann Pedersen
bed3235d22 Thu Aug 18 17:27:09 2005 Søren Sandmann <sandmann@redhat.com>
Move fbmmx to a convenience library since the mmx flags may be harmful when
    applied to non-mmx code.
2005-08-18 21:28:09 +00:00
Søren Sandmann Pedersen
f2f6820c3f Wed Aug 17 13:13:00 2005 Søren Sandmann <sandmann@redhat.com>
Make asm labels local. Bug 4073, patch from Diego Pettenò.
2005-08-17 17:20:13 +00:00