summaryrefslogtreecommitdiff
path: root/src/radeon.h
AgeCommit message (Collapse)Author
2006-09-25remove all CVS annotations from the ATI driver filesDave Airlie
2006-09-23radeon: add reverse display option to switch displays on non-mobility cardsAlex Deucher
2006-09-22radeon: add simple map controllers callDave Airlie
2006-09-18radeon: add tv dac adj lookupDave Airlie
2006-09-18radeon: add save/restore of some new registersAlex Deucher
move some registers about
2006-09-18radeon: restructure files along lines of Alex's superpatchAlex Deucher
2006-07-03Reserve HW cursor memory statically instead of from EXA offscreen.Michel Dänzer
As a result, quite a bit of code can be removed that attempted to deal with the EXA offscreen memory disappearing, with varying success. Because the HW cursor memory is now always immediately after the front buffer and before the back buffer, this also fixes bug #6808. As the HW cursor memory is now reserved statically with EXA and XAA, change RADEONUseHWCursor() to check info->cursor instead of info->cursor_offset, for which 0 might become valid with HW cursor enabled in the future. Change info->cursor_offset from unsigned long to CARD32 as the corresponding register is 32 bits wide, and to avoid issues with printf.
2006-06-21Bug #7283: Build fixes for !defined(XF86DRI).Michel Dänzer
Thanks to Matthieu Herrb for pointing out some of these.
2006-06-18Implement accelerated EXA DownloadFromScreen hook.Michel Dänzer
x11perf -getimage numbers only increase by about 20-30% on my PowerBook with an M9, but by about 100 times(!) with a PCIe X550. I suspect the former could perform better with PCI as opposed to AGP transfers, which would also remove the need to disable this by default with AGP.
2006-06-18Add Option "DepthBits".Michel Dänzer
This allows getting higher depth buffer precision and stencil hardware acceleration in depth 16 or saving some video RAM at the cost of these features in depth 24.
2006-06-15Fix semantic glitches pointed out by gcc -Wall.Michel Dänzer
The radeon driver builds warning-free with gcc -Wall here now.
2006-06-15fix more printf formatsDave Airlie
2006-06-15Fix some implicit function declarations.Michel Dänzer
2006-05-01Bugzilla #6755 <https://bugs.freedesktop.org/show_bug.cgi?id=6755> PatchMichel Daenzer
#5536 <https://bugs.freedesktop.org/attachment.cgi?id=5536>: Change HostDataBlit interface to take dst_offset_pitch and coordinates instead of just a destination pointer, as the latter is not sufficient with tiling. Also, use HW clipping to avoid overwriting destination data outside of the specified width. Adapt to new HostDataBlit interface. This fixes corruption with UploadToScreen to the front buffer (from exaPutImage).
2006-04-26Make the ATI driver use the PCI BAR size to determine the MMIO registerDave Airlie
aperture size. Otherwise it tries to overmap things if they are up near the end of memory.
2006-04-21Add support for backing up the PCIE GART table on VT switch. This makesDave Airlie
suspend/resume work a lot better on PCIE cards.
2006-04-01- Fix dpi when switching from clone to dualhead with MergedFB.Alex Deucher
- Add ConstantDPI option to force a particlar dpi across mode changes Both based on Thomas Winischhofer's sis code.
2006-03-22Convert use of xf86fopen() and other xf86 wrapped libc symbols to use libcKristian Høgsberg
symbols directly. The xf86* versions aren't supposed to be used directly. Drop libc wrapper; don't include xf86_ansic.h and add includes now missing.
2006-03-15Fix various issues with DRI & server recycle by putting DRICloseSreen inBenjamin Herrenschmidt
the normal CloseScreen callback chain at a spot that matches the call to DRIFinishScreenInit in order to unwrap at the right time.
2006-03-09More memory map fixes !!! This time, we add a way to get the DRM kernelBenjamin Herrenschmidt
module version early, in order to properly limit the framebuffer size when a module that doesn't support the new map is loaded. That will improve backward compatibility. I also made the minimum required kernel module version 1.3 which hopefully shouldn't be a problem for anybody, and cleaned up the ordering in which we test for DRM version to enable features
2006-03-09Update drivers that support EXA for the new EXA ABI. This consists ofEric Anholt
moving all the accel and card members into the driver ptr, filling in the exa_major/ exa_minor fields, and always using LoadSubModule so we can check the module version up front. Only tested on ATI.
2006-02-26Fix page flipping with XAA. The new code ended up calling ShadowFBInit()Benjamin Herrenschmidt
before XAAInit(), which breaks ShadowFB.
2006-02-25Add pci ids known to exist (see #4284 for instance). There are stillRoland Scheidegger
entries which probably don't really exist (cancelled cards and such), leave them as-is. Fix the name of some entries, mostly based on the .inf file of the newest catalyst driver. Use own family id for rv410 and rs400, though there is no different code (yet?).
2006-02-16Memory map and misc fixes. This completely reworks the way the driverBenjamin Herrenschmidt
detects available & accessible video memory and initializes the card internal memory map. Along the way, I re-ordered some of the stuffs in pre-init in order to remove some dodgy codepath, fixed various init, exit and vt switch issues, and overall made the driver more robust. The full memory map fix requires an updated DRM. The X driver no longer tries to position the AGP aperture, this becomes entirely DRM responsibility.
2006-01-08Bug #5523: Make radeon compile without USE_XAA. (Tilman Sauerbeck)Adam Jackson
2005-11-09Fix DoLoadableServer NO build.Kevin E Martin
2005-10-09Secure the Radeon PCIE GART tables in framebuffer memory by not allowingXORG-6_8_99_901Dave Airlie
the clients to get access to a secure area of framebuffer.
2005-09-20Only include radeon_dri.h & radeon_sarea.h if XF86DRI is defined.Alan Coopersmith
Include "compiler.h" to define __inline__ on non-gcc compilers
2005-09-17Switch radeon driver to using a card type rather than having a IsPCI flag,Dave Airlie
allow for PCI/AGP/PCIE cards. Set PCI gart allocation to only happen on PCIE cards. Add Radeon PCIE card detection using capability bits.
2005-09-12Move GART offset/size outside XAADave Airlie
2005-09-11Add support for EXA to the radeon driver. Building EXA and XAA support isEric Anholt
controlled at compile time, plus the runtime option of Option "AccelMethod" "EXA" or "XAA". The XAA support appears to remain as before, while the EXA pieces need just a little more polishing. Notable features: - Render acceleration working on Radeon 100 and 200-series with DRI on. - DRI works with EXA Notable issues: - DGA disabled in the EXA case. - Backbuffer moves disabled in the EXA case. - No textured XVideo. - MMIO render acceleration is close but still has some issues. - Memory pressure while using Composite is really troublesome with DRI on. This patch is based on an initial patch by Zack Rusin, with significant work by Benjamin Herrenschmidt and myself.
2005-09-11Add support for allocating PCI GART table in framebuffer memory. This isDave Airlie
needed to support PCIE Radeons using a new DRM.
2005-07-01- fix depth tiling for r3/4xx chips (Aapo Tahkola)Alex Deucher
- adjust limits for tiled surfaces on r3/4xx
2005-06-15Sync up radeon mergedfb with Thomas' latest sis mergedfb changes:XORG-6_8_99_12Alex Deucher
- non-rectangular mergedfb desktops - screen offsets
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.
2005-04-17Added new options for the ATI driver: RageTheatreMicrocPath andBogdan Diaconescu
RageTheatreMicrocType
2005-03-29bugzilla #2840 (https://bugs.freedesktop.org/show_bug.cgi?id=2840)Kevin E Martin
attachment #2227 (https://bugs.freedesktop.org/attachment.cgi?id=2227) Fix build problems introduced by previous Radeon PLL errata workarounds.
2005-03-24- radeon PLL access errata workarounds (Benjamin Herrenschmidt, acked byAlex Deucher
Hui Yu)
2005-02-22Fix building radeon driver with BuildXF86DRI set to NO, the breakage wasRoland Scheidegger
caused by the tiling support (bug #2481)
2005-01-26(Stephane Marchesin, me) Add support for color (framebuffer) tiling.Roland Scheidegger
Convert all XAA accel code to use explicit dst and src offset pitch control to make it work. Use the new drm surface ioctls to set up the tiled surfaces (if dri is enabled).
2004-12-19- Make dualhead ram allocation cleaner and related messages clearerAlex Deucher
2004-12-17- Add VGAAccess option to r128 driver. Based on Benh's radeon patch. r128Alex Deucher
should now work on ppcs without usefbdev. To use this on ppc make sure you set "usefbdev" to false. (bug 2089) - Apply Benjamin Herrenschmidt's radeon patches (bug 2064)
2004-12-12- only mess with Dynamicclocks on mobility chips (Benh, me) bug 1912Alex Deucher
- fix display detection (Hui Yu) bug 1559 - Add new option "BIOSHotkeys" to allow the bios to control output switching (off by default) bug 2000 - update the savage man page to document the "CrtOnly" option
2004-12-06When direct rendering is enabled, use hostdata blits to transfer data fromMichel Daenzer
system memory to video RAM, which should reduce CPU usage especially with larger videos. Can be disabled via Option "DMAForXv" if there should be any stability issues, but it's been stable for me during a week of testing. Based on a patch by Nikolaus Meine <meine@tnt.uni-hannover.de>. Probably fix endianness issues in some newer XVideo code, untested. Also use hostdata blits to transfer RENDER image data to video RAM to avoid idling the accelerator engine. Increases RENDER performance significantly for me. These changes were only tested on an M9 in a Titanium PowerBook but should work with all Radeons where direct rendering is supported.
2004-10-03Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon.h xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.c xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.[c,h] xc/programs/Xserver/hw/xfree86/drivers/ati/theatre.c Detect and initialize Rage Theatre (RT100)
2004-10-02Modified:Vladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon.h xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.c xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_video.h xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_mm_i2c.c Add code to access and initialize multimedia i2c bus. Hook it up.
2004-10-02xc/programs/Xserver/hw/xfree86/drivers/ati/radeon_driver.cVladimir Dergachev
xc/programs/Xserver/hw/xfree86/drivers/ati/radeon.h Add TV-in specific options. Add TV-in specific fields to radeon per-screen structure, add code to initialize them. Preserve MM_TABLE (instead of whole VBIOS as was done in GATOS drivers)
2004-09-17Bugzilla #1170: Fix an overcounting of DMA in BEGIN_RING that wasn'tEric Anholt
harmful. Bugzilla #1169: Add counting for BEGIN_RING/OUT_RING/ADVANCE_RING to avoid these sorts of problems in the future.
2004-08-12Fix context switching on Radeons and build problem when XF86DRI is notXORG-6_7_99_2Kevin E Martin
defined (Bug #922, Eric Anholt).
2004-07-30Support for New radeon chips: R420/M18, R423, RV370/M22, RV380/M24, RS300.Hui YU
Add special handlings for DELL triple-head server (RV100). Misc. bug fixes for flat panel, host aperture, etc (Bug #946)