summaryrefslogtreecommitdiff
path: root/hw/xfree86/ramdac
AgeCommit message (Collapse)Author
2009-06-29xfree86: fix SWCursor check in xf86CursorSetCursor.Peter Hutterer
Wrong check for inputInfo.pointer resulted in a SW cursor being rendered when the pointer left the screen (in a Xinerama setup). We must call the sprite rendering function if - SW cursors are enabled, or - The current device is not the VCP and not attached to the VCP. Backported from commit 66089e9129a821cfb1983d3d35f41b975a52de5e for server-1.6-branch by Peter Hutterer Reported-by: Gordon Yuan <GordonYuan@viatech.com.cn> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Keith Packard <keithp@keithp.com>
2008-12-16xfree86: don't render SW cursors for devices attached to VCP (#16805)Peter Hutterer
When leaving 3D games such as quake3 or sauerbraten, a cursor may stay on the screen. This is caused by one run of SW rendering for the SD, even though the SD was attached to the VCP and thus has HW rendering capabilities. Check for the SD's attachment (like in all other functions) before deciding on SW or HW rendering. X.Org Bug 16805 <http://bugs.freedesktop.org/show_bug.cgi?id=16805> Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> (cherry picked from commit bb072019fa8dd292a50ef433d05caeefd1304a73)
2008-10-26Nuke unused variablesJulien Cristau
2008-10-06xalloc+memset(0) -> xcallocAdam Jackson
2008-08-28Prepare for array-index based devPrivates.Tomas Carnecky
TODO: static indices can be made just an int; some indices can be combined.
2008-08-27Add an array of integers for use as per-screen cursor private keys.Eamon Walsh
Replaces the use of the screen pointer itself as the key, which was nice but won't work now that an array index is being stored.
2008-06-24Fix "warning: suggest parentheses around && within ||".Eamon Walsh
2008-06-11Remove unused xf86DeviceCursorUndisplay() function.Tiago Vignatti
2008-05-16xfree86: always render first cursor in HW, all others in SW.Peter Hutterer
2008-05-16Restructure and organize the code.Tiago Vignatti
It was removed and simplified some conditionals. We don't need test for pDev->isMaster inside xf86CursorSetCursor() because only MD enters there. In the last chunk, ScreenPriv fields were being assigned without need, so that code was wrapped inside the conditional to avoid it. I also tried to make the identation more sane in some parts that I touched. Signed-off-by: Tiago Vignatti <vignatti@c3sl.ufpr.br> Minor modification, part of the original patch led to cursors not being updated properly when controlled through XTest. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
2008-05-16Remove redundancy.Tiago Vignatti
The only function that cat set SWCursor before xf86DeviceCursorInitialize() is xf86InitCursor() when VCP and is created. Signed-off-by: Tiago Vignatti <vignatti@c3sl.ufpr.br> Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
2008-05-13Remove UndisplayCursor API.Peter Hutterer
We can achieve the same thing by simply displaying a NullCursor, there's no need for a separate API.
2008-05-06xfree86: call SetCursor for the VCP when switching between SW/HW rendering.Peter Hutterer
We need a manual call to SetCursor when we switch from SW to HW rendering and the other way round. This way we display the new cursor after removing the old one. In addition, we only update the internal state for the VCP's sprite. This way, when we switch back to HW rendering the state is up-to-date and wasn't overwritten with the other sprite's state. The second part is a hack. It would be better to keep a state for each sprite, but then again we don't have hardware that can render multiple cursors so we might as well do with the hack.
2008-05-06xfree86: switch between to SW cursors if more than 1 sprite is available.Peter Hutterer
Switches back to HW cursors when sprites other than the VCP are removed. The current state requires the cursor to change shape once before it updates to SW / HW rendering (whatever is appropriate), e.g. by moving into a different window. Until this is done, the cursor is invisible.
2008-05-06xfree86: re-enable hardware cursor (for a single cursor)Peter Hutterer
This commit enables HW rendering for cursors again, but only for a single cursor. Other cursors can be created, however they will not be visible.
2008-01-03Merge branch 'master' into mpxPeter Hutterer
Conflicts: XTrap/xtrapddmi.c Xext/security.c Xext/xprint.c Xext/xtest.c Xext/xvdisp.c Xi/exevents.c Xi/grabdevb.c Xi/grabdevk.c Xi/opendev.c Xi/ungrdev.c Xi/ungrdevb.c Xi/ungrdevk.c dix/cursor.c dix/devices.c dix/dixutils.c dix/events.c dix/getevents.c dix/main.c dix/window.c hw/xfree86/ramdac/xf86Cursor.c include/dix.h include/input.h include/inputstr.h mi/midispcur.c mi/miinitext.c mi/misprite.c render/animcur.c xfixes/cursor.c xkb/xkbAccessX.c
2007-08-30devPrivates rework: convert CursorRec and CursorBits over to new interface.Eamon Walsh
2007-08-28devPrivates rework: since API is already broken, switch everythingEamon Walsh
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-04-02Merge branch 'master' into mpxPeter Hutterer
Conflicts: Xi/closedev.c Xi/exevents.c Xi/extinit.c Xi/listdev.c dix/window.c hw/xfree86/common/xf86Xinput.c include/extinit.h mi/mipointer.c
2007-03-25Since ddc, i2c, and ramdac are in core now, remove their ModuleData stubs.Adam Jackson
2007-03-19Merge branch 'master' into mpxPeter Hutterer
Conflicts: dix/devices.c dix/events.c mi/misprite.c
2007-03-15Create driver-independent CRTC-based cursor layer.Keith Packard
This moves most of the cursor management code out of the intel driver and into the general server code. Of course, the hope is that this code will be useful for other driver writers as well. Check out xf86Crtc.h for the usage information, making sure you add the needed hooks to the crtc funcs structure for your driver. (cherry picked from commit 4d81c99a4660a0bf9014f789de55edabd185bd14)
2007-03-05Merge branch 'master' into mpxPeter Hutterer
Conflicts: configure.ac dix/getevents.c hw/xfree86/ramdac/xf86Cursor.c mi/mipointer.c xkb/xkbUtils.c
2007-02-15Merge crtc/output-based mode selection code.Keith Packard
This code comes from the intel driver, so there's no history in this tree. As the crtc/output-based mode selection code uses ddc, the ddc and i2c modules have been merged into the server. Attempts to load them are safely ignored now.
2006-12-18Cleaning up ifdef MPX from remaining files, removing it from configure.ac.Peter Hutterer
Removing building mpx extension from Makefile.am
2006-12-05Merge branch 'master' of git://anongit.freedesktop.org/git/xorg/xserver into mpxPeter Hutterer
Conflicts: dix/events.c
2006-11-23mi: closing memory leak, miPointer is freed in miPointerCloseScreenPeter Hutterer
bugfix: uninitialized pPointer in miPointerGetPosition ifndef MPX adding DeviceIntPtr parameter to ScreenRec's cursor functions. cleanup of miPointer code to use same scheme in each function dix: MPHasCursor() function determines checking whether to invoke cursor rendering. animcur: adding DeviceIntPtr parameter to cursor functions but animcur relies on the core pointer right now. xfixes: adding DeviceIntPtr parameter to cursor functions but xfixes relies on the core pointer right now. rac: adding DeviceIntPtr parameter to cursor functions but RAC relies on the core pointer right now. ramdac: adding DeviceIntPtr parameter to cursor functions but ramdac relies on the core pointer right now.
2006-11-17dix: moved isMPdev field to end of _DeviceIntRec structurePeter Hutterer
mi: added miMPPointers array to mipointer.c added DeviceIntPtr to all miPointerSpriteFuncs. Coming from miPointer we use inputInfo.pointer as standard value. ABI BREAK! ramdac: forcing failed HW Cursor initialisation. MPX needs software rendering. changes to use new miPointerSpriteFunc (this required externing inputInfo, should probably be fixed at a later point). RAC: changes to use new miPointerSpriteFuncs.
2006-09-18Remove smashing of CFLAGS from server build.Keith Packard
CFLAGS is a user variable, extracted from the environment at configure time and settable by the user at build time. We must not override this variable.
2006-07-21Remove RCS tags. Fix Xprint makefile braindamage.Adam Jackson
2006-07-18get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULEDaniel Stone
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-06-05Ensure all *ModuleData symbols are marked _X_EXPORT. Start removingAdam Jackson
XFree86LOADER ifdefs, non-loadable hasn't been supported for a while now. Remove completely gratuitious REMOVE_LOADER_CHECK_MODULE_INFO ifdefs surrounding a call to a function added in XFree86 4.1 (!). Miscellaneous static markings.
2006-02-16Fix an occasional crash on VT switches: the server would save a pointer toBenjamin Herrenschmidt
the current cursor when disabling FB access and would try to restore that cursor when re-enabling. However, that cursor might have been destroyed in between. This fixes it by updating the saved cursor pointer when a cursor is set and vtSema is FALSE.
2006-02-10Remove libcwrapper usage from xorg server modules. The libcwrapper is onlyEric Anholt
of (marginal) use in the drivers, and that usage remains.
2006-01-23Commit #4633 - Initial mouse pointer incorrect with EXA which also fixesAlan Hourihane
the repaint of the cursor image with randr events.
2005-12-02Define XFree86Server only where it is required.Kevin E Martin
2005-11-29Fix usage of XFree86LOADER/XFree86Module/IN_MODULE and update loadableKevin E Martin
module builds to reflect this change.
2005-10-06Add cpconfig.c to EXTRA_DIST.Kristian Høgsberg
Add CURSOR.NOTES to EXTRA_DIST. Add extrapci.ids to EXTRA_DIST and fix xf86PciIds.h rule.
2005-08-24Remove use of dix-config and xorg-config.h from public headers.Daniel Stone
2005-07-13Dear libtool: Loadable modules do not need version numbers. kthnxbye.Adam Jackson
2005-07-03Change <X11/misc.h> and <X11/os.h> to "misc.h" and "os.h".Daniel Stone
2005-07-03Add Xtrans definitions (FONT_t, TRANS_CLIENT) to clean up warnings.Daniel Stone
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-02Continuing Makefile cleanup; add DIX_CFLAGS and XORG_CFLAGS everywhere.Daniel Stone
2005-07-01Change all misc.h and os.h references to <X11/foo.h>.Daniel Stone
2005-07-01Adding initial build system.Daniel Stone
2005-04-20Fix includes right throughout the Xserver tree:Daniel Stone
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-08-03Bug #962: Remove LoaderSymbol calls introduced by the dlloader work soAdam Jackson
DoLoadableServer NO builds work again.
2004-04-23Merging XORG-CURRENT into trunkEgbert Eich
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004Egbert Eich
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004Egbert Eich