summaryrefslogtreecommitdiff
path: root/src/savage_driver.h
AgeCommit message (Collapse)Author
2024-05-29drop dead codeEnrico Weigelt, metux IT consult
There's still a lot code thats either commented- of ifdef'ed out. Most likely not needed anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/12>
2024-05-29drop obsolete compat macrosEnrico Weigelt, metux IT consult
Since we're relying on xserver >= 1.18, these macros aren't needed anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/12>
2024-05-18Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)Alan Coopersmith
Already effectively required by use of XNFcallocarray() introduced in xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015. Allows dropping remnants of code for XAA and pre-pciaccess X servers Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/11>
2024-01-10Fix warning: no previous prototype for ‘SavageGetCopyROP’Alan Coopersmith
savage_accel.c:1541:5: warning: no previous prototype for ‘SavageGetCopyROP’ [-Wmissing-prototypes] 1541 | int SavageGetCopyROP(int rop) { | ^~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-07-17xf86-video-savage: remove the GlxSetVisualConfigs stub and friendsEmil Velikov
The function was an empty since 2008 at least. Remove it alongside the unused GLX visuals code. With this all the GL/GLX dependencies in the driver are gone. Cc: Stefan Dirsch <sndirsch@suse.de> Cc: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2014-01-07Include xf86Modes.h to use functions from hw/xfree86/modes/xf86Modes.c.Jeremy White
Signed-off-by: Jeremy White <jwhite@codeweavers.com> Reviewed-by: Robert Morell <rmorell@nvidia.com>
2012-07-18savage: move compat-api.h down to proper place.Dave Airlie
This screws up when DRI isn't enabled. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-16savage: make build with no xaa server.Dave Airlie
This fixes savage build against the no XAA server. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-06savage: port to new compat APIDave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-24Refactor BIOS modes retrieval to call VBEGetVBEInfo only onceTormod Volden
Otherwise, calling it twice would trigger a VBE bug when using xserver 1.12. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-01-17Untangle XF86DRI from the driver-specific DRI definePeter Hutterer
XF86DRI is defined by xorg-server.h, so --disable-dri in the driver itself does exactly nothing other than not fill in the CFLAGS and thus stop the driver from compiling. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-01-03Do not use the deprecated xf86PciInfo.h from xserverTormod Volden
Instead maintain our own list of supported PCI IDs. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-04-21savage: Make SAVAGESelectBuffer() private (static)Tormod Volden
Also clean out some unused prototypes from savage_driver.h Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-21savage: New SAVAGEDRIResume functionTormod Volden
Move DRI stuff from savage_driver.c to savage_dri.c Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-01-25savage: Setup tiled surface registers in SavageEnterVTTormod Volden
These registers are cleared after suspend/resume, so set them up again in EnterVT.
2009-07-28savage: change to using ABI version checkDave Airlie
2009-07-28savage: update for resources/RAC API removalDave Airlie
2009-01-16Add AGPforXv OptionAlex Villacís Lasso
Instructs the BCI Xv pixel formatter to use AGP memory as a scratch buffer for Xv image upload
2008-01-19Implement driver option IgnoreEDIDAlex Villací­s Lasso
Since some time, savage enforces video-mode and max. pixel clock validation through EDID, which is great for autoconfiguration, but prevents users from defining higher screen resolutions, even though the monitor is capable of it. This patch implements the IgnoreEDID option so that the EDID monitor information can be explictly disabled.
2007-09-14fix the build for the non-pci-rework case (compile tested only)Alex Deucher
2007-08-30Update to use new libpciaccess interfaces for mapping with MTRR support.Ian Romanick
2007-08-22Merge PCI-rework support and "classic" PCI interface support into one treepci-reworkIan Romanick
First pass at merging both trees. So far, this has only been compile tested. I need to dig out a savage card to put in a system for testing, so it may take another hour or two.
2007-08-22Merge branch 'master' into pci-reworkIan Romanick
Conflicts: src/savage_driver.h
2007-08-22dos2unixIan Romanick
2007-08-07Define SAVAGE_VERSION* using PACKAGE_VERSION*Brice Goglin
2006-12-11Merge branch 'master' of ↵Ian Romanick
git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-savage into pci-rework Conflicts: src/savage_driver.c
2006-10-23Strip ^M's out of savage_driver.hAlan Coopersmith
2006-09-28bump to 2.1.2 for new releasexf86-video-savage-2.1.2Alex Deucher
2006-09-18fix DRI locking in savage driver. Based on ajax's similar patch.Alex Deucher
Thanks to ajax and tilman for locking advice and Pascal Sclafer for tracking this down. Fixes bug 6357.
2006-08-08Minimal change set to convert driver to the new PCI interfaces. Enjoy.Ian Romanick
2006-08-07Do a single mapping per BAR. This cleans up the code a bit and pavesIan Romanick
the way for the pci-rework branch. The disadvantage is that the Savage3D puts MMIO and framebuffer in the same BAR. This has to be fixed-up after the mapping by altering the write-combine setting for the framebuffer subrange.
2006-08-07Introduce the savage_region structure, which is used to track mappableIan Romanick
regions of PCI space.
2006-08-04Merge SavageMapMMIO and SavageMapFB into a single, new function calledIan Romanick
SavageMapMem. Eliminate the MapBaseDense cruft.
2006-08-04Fix line endings (at least, I assume that's why git-diff thinks everyIan Romanick
line in the file is chaged). Add missing license statement. Change SAVAGE_VGAHWMMIO_H to SAVAGE_DRIVER_H.
2006-04-30- Add exa support (solid, copy, UTS)Alex Deucher
2006-04-08Bump to 2.1.1 for Xv changes.savage-2_1_1XORG-7_1Adam Jackson
2006-04-07Unlibcwrap. Bump server version requirement. Bump to 2.1.0.savage-2_1_0Adam Jackson
2006-02-08Some trivial savage fixes:Luc Verhaegen
- Remove insane usage of pScrn->clocks. Set maxClock directly. - Fix trivial and harmless warning in DRI code (FrameBufferBase)
2005-11-09Bump version numbers for X11R6.9/X11R7 RC2.XORG-6_99_99_902XORG-6_8_99_903XORG-6_8_99_902Kevin E Martin
2005-10-19lib/Xcomposite/Xcomposite.hXORG-6_8_99_901Kevin E Martin
lib/Xft/Imakefile lib/Xft/Xft.h Update library version numbers to match updated package versions. Update driver version numbers for RC1.
2005-03-13- Removed lots of dead code.Felix Kuehling
- Moved driver-private definitions from savage_dri.h to savage_driver.h. savage_dri.h should only contain the public interface between DDX and DRI drivers. - Don't forget to remove the command DMA mapping in SAVAGEDRICloseScreen.
2005-03-06- Support for the new DRM version 2.4 with command DMA.Felix Kuehling
- Added an option "DmaMode" to choose between vertex and command DMA. - Allow ShadowStatus to be explicitly disabled even with DRI enabled. - Updated the man page.
2005-02-26Fixed ShadowStatus handling with DRI:Felix Kuehling
- always enable ShadowStatus when DRI is enabled - if DRI initialization fails, reset ShadowStatus to configured setting - if DRI initialization fails, fall back to ShadowStatus in framebuffer
2005-01-31- Shadow status update thresholds on Savage4 were reversed. Fixed now.Felix Kuehling
- Fixed cobIndex on Savage2K. It used only a 4K COB so far. Now we have full 128K. - Program the shadow status thresholds correctly on Savage2K. - Savage2K reports used entries in the queue in qword units instead of dwords. Fixed WaitQueue2K accordingly. - Event counter 0 is in status word 2 instead of status word 1 on Savage2K. Fixed ShadowWait accordingly. - Added a ShadowWaitQueue function that doesn't idle the engine all the time. This improves 3D animation smoothness with concurrent 2D activity when shadow status is enabled.
2005-01-30Added two new options "DmaType" and "ForcePCIMode".Felix Kuehling
2005-01-10- Support for PCI Savages: on PCI cards don't run SAVAGEDRIAgpInit, add PCIFelix Kuehling
DMA buffers instead of AGP buffers. Set dma_type properly in SAVAGEDRIKernelInit. - Something's still wrong with ShadowStatus on the PCI card I'm testing here. Probably a DRM issue. - Fixed error handling. Call SAVAGEDRICloseScreen instead of DRICloseScreen. - Added AGP/PCI detection (copied from the radeon driver).
2005-01-01Updates to support the new Savage DRM driver (version 2.0.x) which was justFelix Kuehling
committed to DRM CVS. Cleaned up the interface to the DRI driver. Bumped the Savage DDX version to 2.0.0 due to incompatible changes in that interface.
2004-11-23- fixed tiled framebuffer on savage2000Alex Deucher
2004-10-21when using the overlay for Xv, only enable it when displaying the videoAlex Deucher
otherwise the overlay breaks on mode changes.
2004-10-07Require tiled mode for 3DAlex Deucher