summaryrefslogtreecommitdiff
path: root/src/radeon_accel.c
AgeCommit message (Collapse)Author
2009-07-06radeon: port to new space checking in libdrm interfaceDave Airlie
This uses a new libdrm interface which shares code with mesa. It also fixes the bo to flush when full instead of never flushing. It survives gtkperf -a here which the driver didn't before now
2009-07-06Revert "KMS CS fixes."Dave Airlie
This reverts commit 11cf8a28eb46f48d101888552266921bee8b63fc. I'll bring this back in a few minutes, I've got a big change introducing a new cs space accounting scheme which this messes up and I think probably conflicts with what I've done. I promise i'll go over this and pick the bits that are still useful :)
2009-07-05KMS CS fixes.Michel Dänzer
* Flush CS before running out of space. * Don't flush CS every time when switching between 2D and 3D engine, but make sure to re-initialize 2D/3D state after flushing. Doesn't seem quite perfect yet (some rendering seems to get dropped on the floor sometimes), but this should fix a lot of CS failures people have been seeing.
2009-07-02radeon: add KMS support (still disabled)Dave Airlie
This adds DRI2 + KMS + driver pixmaps support to the driver. I've decided to just do a completely separate KMS driver file instead of hacking the crap out of radeon_driver.c. So now I do the KMS check in radeon_probe.c time and set the DDX pointed up to a completely different set at this stage. This avoids a lot of if (kms) type crap in the code at the expense of making sure we make changes to both files if necessary. This code is still disabled in configure.ac as I broke EXA composite rendering somehow in KMS mode
2009-06-30Warning fixes.Michel Dänzer
2009-06-30radeon: initial preparation for kms patch.Dave Airlie
This patch contains most of the changes to the EXA and texture video accel code. It adds a few bits of pixmap support but doesn't actually do anything useful KMS yet. Testing this should not have any regressions over what we have already, biggest worries are r6xx, I've fixed a textured video one, but no idea what other might lurk It won't build against libdrm radeon yet either
2009-05-03r3xx-r5xx: switch to 1/12 subpixel precisionAlex Deucher
- based on similar patch in Jerome's cs ddx tree - also fix clipping offsets - should eventually allow for 4k render targets - mesa driver uses 1/12 mode, this avoids changing the subpixel mode when switching between ddx and mesa
2009-04-28RV410: SE variants only have 1 quad pipeAlex Deucher
Should fix EXA corruption with the 3D engine. Mesa and drm patches forthcoming. Reported by Kano on IRC.
2009-03-15Fix fallout from r6xx/r7xx EXA merge in IB handlingAlex Deucher
Noticed Christiaan van Dijk. Should fix bug 20510
2009-02-19R6xx/R7xx: add wait for idle MMIO pathAlex Deucher
2009-02-03Initial R6xx/R7xx EXA and textured video supportAlex Deucher
2009-01-23Make sure gb_num_pipes is initialized when DRI is disabledMaciej Cencora
Found with valgrind
2008-12-15r600: don't idle engineDave Airlie
(cherry picked from commit b77729448e487d37707ce028d8edc59352d1cc2d)
2008-08-25Switch to using radeon_drm.h from the drmAlex Deucher
modelled after Matthias' similar rhd change
2008-08-25Move DRI to a separate structAlex Deucher
based on Matthias' similar work in rhd
2008-08-25Cleanups from rhd portEgbert Eich
- remove unused vars - remove static exa render vars
2008-08-25Move accel state to a separate structAlex Deucher
2008-08-25Move CP into a separate structAlex Deucher
2008-08-13Remove reset of 3D scissor registers when using the CP in the ddxAlex Deucher
They should only affect 3D and init3d() should take care of that case noticed by libv on IRC.
2008-07-03radeon: drop all use of CPMode.Dave Airlie
We never test the other codepath and I don't think I've ever recommended it for anyone.
2008-06-26RADEON: fix copy/paste error in accel codeBrad Smith
2008-06-17radeon: X_ERROR -> X_WARNING for num gb pipesAlex Deucher
This just means your drm is old, not fatal or anything
2008-06-11R3xx: use DSTCACHE_CTLSTAT rather than RB2D_DSTCACHE_CTLSTATAlex Deucher
According to the hw guys, you should use DSTCACHE_CTLSTAT to flush the 2D dst cache rather than RB2D_DSTCACHE_CTLSTAT.
2008-06-03RADEON: minor cleanupsAlex Deucher
2008-05-27R3/4/5xx: use get_param to get the num_gb_pipes from the drmAlex Deucher
2008-05-14Add RS600 supportAlex Deucher
2008-05-13RS4xx: Split out RS400 and RS480 as separate familiesAlex Deucher
RS400 (intel based IGP) and RS480 (AMD based IGP) have different MC setups and need to be handled differently
2008-05-12Replace CARD{8,16,32} with uint{8,16,32}_tMatt Turner
As has been done with xf86-video-intel, replace all CARD* datatypes with uint*_t datatypes available from stdint.h.
2008-04-27RADEON: remove duplicate register defineAlex Deucher
Also add more bit defs to wait_until register
2008-04-12R3xx+: more fixes to 2D/3D engine initAlex Deucher
2008-04-10R3xx+: use the right register for engine flushAlex Deucher
2008-04-10R3xx+: EXA/textured video fixesAlex Deucher
- get pipe config based on GB_PIPE_SELECT where applicable (adapted from a similar patch from Dave) - only flush the dst cache after submitting vertices, freeing the cache lines stalls the pipe - no need to wait for 3D idle after submitting vertices - fix PURGE_CACHE() and PURGE_ZCACHE() for r3xx+ - fix depth 16 with EXA composite
2008-02-27R300+: update RADEONCP_REFRESH() to reflect new location of scissor regsAlex Deucher
2007-12-21RADEON: more re-org. move XAA Mem init to radeon_accel.cAlex Deucher
2007-12-21Merge remote branch 'origin/atombios-support'Dave Airlie
Conflicts: src/radeon_display.c src/radeon_driver.c
2007-12-18RADEON: driver cleanups, warning fixesArkadiusz Miskiewicz
2007-12-10Merge branch 'zaphod-lolz' of ↵Dave Airlie
git://git.freedesktop.org/git/xorg/driver/xf86-video-ati into atombios-support Conflicts: src/radeon.h src/radeon_crtc.c src/radeon_driver.c src/radeon_output.c
2007-12-07radeon: move savedreg/modereg into entity instead of infoDave Airlie
2007-11-20r600: block r600 startup due to lack of memory controller infoDave Airlie
2007-11-06First round of avivo supportAlex Deucher
2007-10-04radeon: Fix for pci-rework.Michel Dänzer
Surprisingly easy, thanks to George's pci-rework changes.
2007-05-21radeon: Suppress debugging output by default.Michel Dänzer
It can be enabled at runtime by increasing the log verbosity level. Also change the prefix from (**) to (II) to make grepping the log file for defaults overridden by xorg.conf more useful again. Turn some MC related debugging output into normal informational output as it's useful for recognizing corner cases that can cause stability issues.
2006-09-25remove all CVS annotations from the ATI driver filesDave Airlie
2006-07-03Build and warning fixes for !defined(USE_XAA).Michel Dänzer
2006-06-15Fix some more cosmetic warnings.Michel Dänzer
2006-06-15fix more printf formatsDave Airlie
2006-06-15fix some more unused variables and bad parameter passingDave Airlie
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-28Bug #6761: Fix font rendering in non-DRI mode by replacing RB2D_DSTCACHE_*Eric Anholt
with RB3D_DSTCACHE_*. The RB2D versions are read-only mirrors of the RB3D. This is masked when DRI is enabled because the DRM uses the right registers in its flushing.
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.