Eric Anholt
6fdfd9dad9
Fix several cases where optimized paths were hit when they shouldn't be.
...
This fixes a number of rendercheck cases.
2006-11-01 14:41:12 -08:00
Alan Coopersmith
357b37b382
Use getisax() instead of asm code to determine available x86 ISA extensions on Solaris
2006-10-18 18:11:06 -07:00
Aaron Plattner
042d4a407d
Bug #8459 : Don't forget to include AM_CFLAGS in libfb_la_CFLAGS on non-MMX platforms.
...
Reported by Edgar Toernig.
2006-10-10 13:01:30 -07:00
Alan Coopersmith
df800d87e0
Add (void) casts to clear compiler errors about ?: results having type mismatch
2006-10-02 11:28:47 -07:00
Aaron Plattner
f9542e7495
Restore the global xx* symbols and add them to wfbrename.h.
...
I don't think they're ever used, but it's best to just leave them alone for ABI
compatibility.
2006-09-28 13:26:54 -07:00
Aaron Plattner
d16e83413e
Hide or rename more global symbols to avoid clashes with libfb.
...
Rename composeFunctions, xxSetup, and xxPrintVisuals. Hide the other xx*
symbols by making them static.
2006-09-20 12:47:17 -07:00
Aaron Plattner
f39fd42429
(unsigned long)(1 << 31) = bad news on x86_64.
...
(cherry picked from 410e5b1d73
commit)
2006-09-05 15:53:45 -07:00
Aaron Plattner
1c72290cdf
Use DrawablePtrs instead of PixmapPtrs for Prepare/Finish access.
...
Also, define some wfb functions even if FB_ACCESS_WRAPPER is not defined. This allows a client to use libfb and libwfb at the same time.
2006-08-07 09:57:58 -07:00
Aaron Plattner
ee02e64788
Wrap libwfb memory access.
...
Use the READ and WRITE macros to wrap memory accesses that could be in video
memory. Add MEMCPY_WRAPPED and MEMSET_WRAPPED macros to wrap memcpy and
memset, respectively.
2006-08-01 13:45:43 -07:00
Aaron Plattner
a69335dc29
Make ReadMemoryProcPtr take a const pointer.
...
Fixes some warnings when using READ with a const pointer.
2006-07-31 14:15:55 -07:00
Aaron Plattner
e6ae1612be
Add fbHasVisualTypes and fbSetVisualTypesAndMasks to wfbrename.h and include -DXFree86Server.
2006-07-27 18:24:59 -07:00
Aaron Plattner
377a581ddf
Switch to using void* pointers.
...
Pass the size of the data pointed to by src or dst as an argument to
wfb{Read,Write}Memory. This allows one set of macros to be used with any size
pointer. Assumes that sizeof(FbBits) >= sizeof(FbStip).
2006-07-26 15:48:51 -07:00
Aaron Plattner
a4005c15fb
Add framebuffer access wrapper infrastructure.
...
Create fbPrepareAccess macros to call into the driver to set up the
wfbReadMemory and wfbWriteWemory pointers. Call these from fbGetDrawable and
fbGetStipDrawable.
Add the READ and WRITE macros, which expand to simple memory accesses for fb,
and calls through the function pointers for wfb.
Add fbFinishAccess macro to give the driver an opportunity to clean up. Add
calls to this in the appropriate places.
2006-07-26 15:48:51 -07:00
Aaron Plattner
319efac445
Prefix all of the exported symbols in libwfb.so with "wfb".
...
For now, just #define all of the exported symbols in wfbrename.h. Later,
we should add FBPREFIX() around the exported symbols and use -fvisiblity=hidden
to hide the rest.
2006-07-26 15:48:51 -07:00
Aaron Plattner
7608a63ff7
Build infrastructure for libwfb.so.
...
Builds fb/* twice, defining FB_ACCESS_WRAPPER for libwfb.la. Define a macro,
FBPREFIX(X) which expands to fbX for libfb.la and wfbX for libwfb.la. Use the
macro on [w]fbModuleData so the new module loads.
2006-07-26 15:48:50 -07:00
Adam Jackson
0aaac95b0d
Remove RCS tags. Fix Xprint makefile braindamage.
2006-07-21 17:56:00 -04:00
Daniel Stone
84683f19b4
get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULE
...
Get rid of almost all uses of these definitions. They're still defined for
delinquent out-of-tree drivers, and also for the Mesa build. As well as
for miinitext.c. But largely gone.
2006-07-18 18:17:38 -04:00
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