summaryrefslogtreecommitdiff
path: root/src/radeon_reg.h
AgeCommit message (Collapse)Author
2010-02-01evergreen: add register and utility definesAlex Deucher
2010-01-27avivo: add some hotplug detect regsAlex Deucher
2009-10-22R7xx: program additional CUR/GRPH regs for 40 bit addressesAlex Deucher
The *_HIGH regs are reversed. The secondary ones are in the primary block and vice versa.
2009-09-01radeon: add some notes about DVO setupAlex Deucher
2009-08-26radeon: afaics these aren't radeon regs but r128 regs.Dave Airlie
so remove them from radeon use.
2009-07-23RS780: fill in MC access functionsAlex Deucher
Also, r6xx/r7xx don't have indirect MC space, so don't try to access it.
2009-07-18Set the STALL bit in the CRTC_GUI_TRIG_VLINE registers.Michel Dänzer
As recommended by the register reference when using the WAIT_CRTC_VLINE bit in the WAIT_UNTIL register, as we are.
2009-05-19Pre-atom: Improve engine clock setup codeAlex Deucher
Also remove SetMemoryClk() for pre-atom cards for now as it requires quite a bit more asic specific work. To set the mclk we'll need to use the mem reset/dll tables in the bios.
2009-05-12R3xx-R5xx: do EXA transforms in the vertex shaderAlex Deucher
2009-05-08R7xx: add support for reading disabled bios imagesAlex Deucher
2009-05-03r2xx-r4xx: fix typo in last i2c fix and clarify hw i2c pin selAlex Deucher
2009-04-30AVIVO: first pass at display watermark setupAlex Deucher
This helps with flickering and blanking when there is contention for MC bandwidth.
2009-04-23r2xx/r3xx/r4xx: further i2c fixupsAlex Deucher
- hw i2c engine has pin selection on r2xx/r2xx/r3xx chips - also switch hw i2c pin sel for external tmds
2009-04-21radeon PM: add some quirksAlex Deucher
2009-04-15Add support for setting the number PCIE lanesAlex Deucher
2009-04-15radeon: Add functions to set sclk/mclk on r1xx-r4xxAlex Deucher
2009-04-02Enable byte swapping for r6xx/r7xx HardwareEduard Fuchs
Patch from Eduard Fuchs with some cleanup from me. Tested at 32 bpp on MPC8641HPCN board (PowerPC) with HD2400 PCIe card
2009-03-31Add PCIE register accessorsAlex Deucher
2009-03-30r1xx-r3xx TV: fix white noiseAlex Deucher
should fix bug 13872
2009-03-24don't convert planar yuv to packed for r200Roland Scheidegger
uses 3 textures for planar yuv and does yuv->rgb conversion in the shader. Similar to r300 code, but might have precision issues - hardware alu should have enough precision but hardware consts are only 8bit and we'd want at least 11. This also enables textured video on rv250 (and also supports packed yuv on that chip by using basically the same shader with packed data).
2009-03-24don't convert planar yuv to packed for r300Roland Scheidegger
uses 3 textures for planar yuv and does yuv->rgb conversion in the shader. small performance advantage, but manual texture cache setting is necessary otherwise it may be measurably slower (but probably not relevant) in some cases. Unlike some other drivers, using MADs instead of DP3s, since this requires less instructions due to no MOVs are required, the end result is the same though the constants need to be different. Use of this is user settable for now (XV_HWPLANAR attrib).
2009-02-26Merge branch 'r6xx-r7xx-support' of ↵Alex Deucher
git+ssh://agd5f@git.freedesktop.org/git/xorg/driver/xf86-video-ati
2009-02-24RS600: fix MC addr maskAlex Deucher
Noticed by osiris on IRC
2009-02-23RS600: fix up MC setupAlex Deucher
Please test if you have an RS600
2009-02-19R6xx/R7xx: add wait for idle MMIO pathAlex Deucher
2009-02-19R6xx/R7xx: wait for MC idle when changing the MCAlex Deucher
should fix bug 19984
2009-02-07Xv vsync support on r6xx/r7xx cards.Pierre Ossman
2009-02-03Initial R6xx/R7xx EXA and textured video supportAlex Deucher
2009-02-02AVIVO: Save/restore vga pll registersWolke Liu
This fixes some VT switch issues on some chips
2008-12-17Fix colors on tv-outAlex Deucher
Call EnableYUV to set the transform and enable/disable it. should also fix green tint with tv connected at boot issues.
2008-12-04Improve tearing avoidance for Xvideo in two stepsPierre Ossman
- Fix up VLINE handling to trigger whenever scanout is outside the visible area. - Render the video as a scissored triangle as R300+ cannot render a quad in a single pass.
2008-12-04First pass at tear-free accelAlex Deucher
if the dest pixmap is the front buffer, stall the pipe until the vline is outside the active area. For EXA, pick crtc based on the larger mode area; ideally we'd have one pixmap per crtc. For Xv, use dst window area to determine crtc.
2008-12-03Fix macros so that they are safe to use with expressions as parameters.Pierre Ossman
2008-08-25Additional cleanups and re-arragement following bicubic mergeAlex Deucher
2008-08-25Whitespace cleanup from bucubic mergeAlex Deucher
2008-08-25Add needed FP registers, etc. for r3xx bicubic Xv.Maciej Cencora
2008-08-25Upload pixel shader to card for r5xx. This was ridiculous. Also it doesn't ↵Corbin Simpson
work yet...
2008-07-29Change prim types for exa and textured video to help avoid tearingAlex Deucher
- r1xx - switch from tri fan to rect list - r2xx/r3xx/r4xx/r5xx - switch from tri fan to quad list
2008-07-21First pass at InitDispBandwidth() for AVIVO chipsAlex Deucher
- support for LB allocation - MC priority bumps for display1/2 on RV515 variants and RS690 If you are having display underflow problems (flickering on sides of screen in high res modes, etc.) on RV515 or RS690 boards, try setting: Option "DisplayPriority" "HIGH" in your config. - still no support for full display watermark programming yet Something similar might be useful in rhd as well.
2008-07-21Interlaced mode fixups for AVIVO chipsAlex Deucher
2008-07-21Clear display priority bits before resetting themAlex Deucher
2008-07-21Clean up legacy display watermark setupAlex Deucher
- makes crtc1 and crtc2 watermark setup independant. - fixes the case where only crtc2 is active
2008-07-17Fix console switch on R500Benjamin Herrenschmidt
This patch fixes the console switch for me on R5xx. There are two aspects to it: - Fix the ordering of avivo_restore() to better match what's happening in the driver & ATOM, properly locking/unlocking and only enabling the CRTCs after everything has been properly programmed. - Don't ASIC_INIT if the card has any CRTC enabled. This is the best I came up with for avoiding spurrious ASIC_INIT on cards that -are- POSTed but don't have the BIOS coming from c0000 on x86. The problem with spurrious ASIC_INIT is that we do it before we do RADEONSave(), so that screws up the console switch. Note that I think we also should save/restore the palette, I don't think we do. right now, it's a minor issue for me because I fixed offb to be able to set it on AVIVO's but it might still have to be done in the long run. Tested with a VGA analog setup on DACA and a DVI setup on TMDS 0. I haven't tested any other combo but that should get us going. Cheers, Ben. Signed-off-by: Dave Airlie <airlied@redhat.com>
2008-07-08rv770 initial supportDave Airlie
adds pci ids and one register from AMD code
2008-06-25radeon: flush & wait for 2d & dma idle after 2d blitJerome Glisse
This should help to avoid 2d & 3d engine to step on each other dma transaction.
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-09R5xx: fix RADEONSetAgpBase() for R5xx chipsAlex Deucher
Is there any reason to still do this in the ddx? Maybe real old drms?
2008-05-30RADEON: update RADEONGetVRAMType() for newer chipsAlex Deucher
2008-05-27RADEON: improve support for secondary cardsAlex Deucher
this should fix bugs 16115, 16035
2008-05-20Change RMX code to follow the programming algorithm suggested by ATI.Egbert Eich
ATI provides the following algorithm to calculate the RMX scaling ratios in its programming specs: when RMX_AUTO_RATIO_HORZ_INC set to 1,Horizontal auto ratio result trucated, and then incremented by 1. Horz_Ratio = ( ((Active display width in characters (including overscan) + 1) / (Panel width in characters)) x 4096 + 1 ) else Horz_Ratio = ( ((Active display width in characters (including overscan)) / (Panel width in characters)) x 4096 + 1 ) when RMX_AUTO_RATIO_VERT_INC set to 1, Vertical auto ratio result trucated, and then incremented by 1. Vert_Ration = ( ((Active display width in characters (including overscan) + 1) / (Panel width in characters)) x 4096 + 1) else Vert_Ration = ( ((Active display width in characters (including overscan)) / (Panel width in characters)) x 4096 + 1) This patch implements this behavor. Additionally it avoids the use of floats.