summaryrefslogtreecommitdiff
path: root/fb/fb.h
AgeCommit message (Collapse)AuthorFilesLines
2008-10-02Fix bad preprocessor lineAdam Jackson1-1/+1
2008-07-23Unifdef sgi.Adam Jackson1-2/+1
2008-07-17Dead code removalDaniel Stone1-6/+0
Remove a whole bunch of code that was never built, be it entire files or just dead ifdefs.
2008-06-24Check for __amd64__, not __x86_64__.Adam Jackson1-1/+1
Spiritual revert of 1fa4de80fcfc697b5e5879cc351fb3e9dbf6acbe. Intel's C compiler claims to be gcc-compatible; if they're not defining the same macros as gcc then that's their bug, not ours. Even if we were to do this aliasing we should do it once and for all in servermd.h.
2008-06-13Death to mfb.Adam Jackson1-3/+0
Anyone still interested in 1 or 4 bpp framebuffers, talk to fb.
2008-04-12Check for __x86_64__ when we check for __amd64__Matt Turner1-1/+1
It seems Intel C Compiler neglects to define __amd64__, __amd64, or amd64, but *does* define __x86_64__.
2008-02-22fbFillRegionTiled() is now dead code.Adam Jackson1-5/+0
Only ever called from the old PaintWindow* screen hooks, but those are gone now. As a pleasant side effect, fb loses its #ifdef PANORAMIX.
2007-11-20Remove some duplicate include statements.Eamon Walsh1-1/+0
2007-11-19Merge branch 'master' into XACE-SELINUXEamon Walsh1-1/+2
Conflicts: hw/xnest/Pixmap.c include/dix.h
2007-11-15Save pixmap allocation hints into the PixmapRec.Aaron Plattner1-1/+2
2007-11-05Merge branch 'master' into XACE-SELINUXEamon Walsh1-1/+2
Conflicts: dix/dispatch.c dix/property.c hw/xfree86/common/xf86VidMode.c include/xkbsrv.h render/glyph.c xkb/xkbActions.c
2007-11-04Add CreatePixmap allocation hints.Aaron Plattner1-1/+2
These hints allow an acceleration architecture to optimize allocation of certain types of pixmaps, such as pixmaps that will serve as backing pixmaps for redirected windows.
2007-09-19Merge branch 'master' into XACE-SELINUXEamon Walsh1-4/+0
Conflicts: afb/afbpntwin.c afb/afbscrinit.c afb/afbwindow.c cfb/cfb.h cfb/cfballpriv.c cfb/cfbscrinit.c cfb/cfbwindow.c configure.ac fb/wfbrename.h hw/xfree86/xf4bpp/ppcIO.c hw/xfree86/xf4bpp/ppcPntWin.c hw/xfree86/xf4bpp/ppcWindow.c hw/xfree86/xf8_32bpp/cfbscrinit.c mfb/mfb.h mfb/mfbpntwin.c mfb/mfbscrinit.c mfb/mfbwindow.c mi/miexpose.c Note: conflicts caused by devPrivates rework vs. paintwindow changes.
2007-09-13Remove the PaintWindow optimization.Eric Anholt1-4/+0
This was an attempt to avoid scratch gc creation and validation for paintwin because that was expensive. This is not the case in current servers, and the danger of failure to implement it correctly (as seen in all previous implementations) is high enough to justify removing it. No performance difference detected with x11perf -create -move -resize -circulate on Xvfb. Leave the screen hooks for PaintWindow* in for now to avoid ABI change.
2007-08-28devPrivates rework: since API is already broken, switch everythingEamon Walsh1-12/+8
over to new system. Need to update documentation and address some remaining vestiges of old system such as CursorRec structure, fb "offman" structure, and FontRec privates.
2007-08-28Merge branch 'master' into XACE-SELINUXEamon Walsh1-18/+2
Conflicts: include/miscstruct.h mi/mibstore.c mi/midispcur.c os/Makefile.am
2007-08-25Implement core protocol backing store exclusively in terms of Composite.Adam Jackson1-17/+0
Composite's automatic redirection is a more general mechanism than the ad-hoc BS machinery, so it's much prettier to implement the one in terms of the other. Composite now wraps ChangeWindowAttributes and activates automatic redirection for windows with backing store requested. The old backing store infrastructure is completely gutted: ABI-visible structures retain the function pointers, but they never get called, and all the open-coded conditionals throughout the DIX layer to implement BS are gone. Note that this is still not a strictly complete implementation of backing store, since Composite will throw the bits away on unmap and therefore WhenMapped and Always hints are equivalent.
2007-08-22Revert "Fix <pixman.h> include to <pixman/pixman.h>"Eric Anholt1-1/+1
The pixman headers have been located under pixman-1/ instead of pixman/ since around 2007-08-06, and pixman-1.pc has the updated include paths to account for this. This reverts commit feb1b3e45513bd6eaa2e6a5ee536183f20d9cb68.
2007-08-22Fix <pixman.h> include to <pixman/pixman.h>Alan Hourihane1-1/+1
2007-08-06Require pixman-1 0.9.4, update pixman includes to new schemeSøren Sandmann Pedersen1-1/+1
2007-08-06Don't unwrap too early in libwfb for Composite.Aaron Plattner1-0/+1
Don't call fbFinishWrap until the pixman_image_t that stores the pointer is actually freed. This prevents corruption or crashes caused by accessing a wrapped pointer after the wrapping is torn down.
2007-08-02Merge branch 'master' into XACE-SELINUXEamon Walsh1-34/+1
Conflicts: dix/devices.c dix/property.c include/dix.h
2007-07-05Clean up unused #ifdefs from fb.Adam Jackson1-34/+0
2007-06-27Handle tileStride > 1 in fbEvenTile.Aaron Plattner1-0/+1
Patch courtesy of James Jones.
2007-06-11Merge branch 'master' into XACE-SELINUXEamon Walsh1-0/+6
Conflicts: dix/dixutils.c
2007-06-03Include pixman.h from fb.h or compile of some files will failBenjamin Herrenschmidt1-0/+2
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2007-05-23- Make image_from_pict() non-staticSoren Sandmann Pedersen1-0/+4
- Delete fbedge.c and fbedgeimp.h - Use pixman_rasterize_edges() in fbtrap.c
2007-04-05devPrivates rework: properly free devPrivates on compatibility structures,Eamon Walsh1-0/+1
type pixmap. Requires ddx'es to call the free function from DestroyPixmap.
2006-11-04Define fbHasVisualTypes in fb.h as it is exportedKeith Packard1-0/+3
2006-10-02Add (void) casts to clear compiler errors about ?: results having type mismatchAlan Coopersmith1-5/+5
2006-08-07Use DrawablePtrs instead of PixmapPtrs for Prepare/Finish access.Aaron Plattner1-19/+15
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-01Wrap libwfb memory access.Aaron Plattner1-9/+31
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-07-31Make ReadMemoryProcPtr take a const pointer.Aaron Plattner1-1/+1
Fixes some warnings when using READ with a const pointer.
2006-07-26Switch to using void* pointers.Aaron Plattner1-4/+4
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-26Add framebuffer access wrapper infrastructure.Aaron Plattner1-0/+69
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-26Prefix all of the exported symbols in libwfb.so with "wfb".Aaron Plattner1-0/+1
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-26Build infrastructure for libwfb.so.Aaron Plattner1-0/+6
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-21Remove RCS tags. Fix Xprint makefile braindamage.Adam Jackson1-2/+0
2005-10-02Bugzilla #4616:Eric Anholt1-13/+39
- 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-08-24Remove use of dix-config and xorg-config.h from public headers.Daniel Stone1-4/+0
2005-07-03Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings.Daniel Stone1-0/+4
Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
2005-07-01Change all misc.h and os.h references to <X11/foo.h>.Daniel Stone1-1/+1
2005-04-20Fix includes right throughout the Xserver tree:Daniel Stone1-2/+2
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h; change "foo.h", "extensions/foo.h" and "X11/foo.h" to <X11/extensions/foo.h> for extension headers, e.g. Xv.h; change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
2004-12-04Encoding of numerous files changed to UTF-8Markus Kuhn1-2/+2
2004-11-05Use ROOTLESS instead of platform specific defines.Torrey Lyons1-2/+2
2004-08-11Apply PPC64 build patch (Bug #303, Mike A. Harris, Alan Coopersmith).Kevin E Martin1-1/+2
2004-07-30Bug #400 (partial): Driver fixes for the dlloader. When using dlloader, allAdam Jackson1-4/+9
framebuffer formats except cfb and the overlay modes should work, and r128 and radeon need to be loaded from the ati driver (both issues to be fixed soon). Tested on i740, s3virge, mach64, tdfx, vesa, and vga drivers. elfloader users shouldn't be affected.
2004-06-21Bug 783: rootless patches for cygwinAlexander Gottwald1-2/+2
2004-05-16xc/programs/Xserver/fb/fb.hAlan Coopersmith1-1/+4
xc/programs/Xserver/fb/fboverlay.c xc/programs/Xserver/fb/fbscreen.c - Change #ifdef for checking for old format miScreenInit to FB_OLD_MISCREENINIT for easier portability to xservers with updated screen structs but old function prototypes. Make it automatically defined if FB_OLD_SCREEN is defined. - Add _LP64 to list of #ifdefs for 64-bit platforms to support 64-bit Solaris.
2004-04-23Merging XORG-CURRENT into trunkEgbert Eich1-2/+2