summaryrefslogtreecommitdiff
path: root/src/radeon_reg.h
AgeCommit message (Collapse)Author
2009-05-08r2xx-r4xx: fix typo in last i2c fix and clarify hw i2c pin selAlex Deucher
2009-05-08r2xx/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-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.
2008-05-14Add RS600 supportAlex Deucher
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-30RADEON: lock the cursors when updatingAlex Deucher
this should fix occasional corruption seen when updating the cursor.
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-04-07Fix rendering of transformed sources for REPEAT_NONE with EXA on >= R300.Owen W. Taylor
Use the border color when possible, otherwise fall back to software.
2008-03-21RS4xx: attempt to set up disp/disp2 fifos correctlyAlex Deucher
If you have an XPRESS chip, please test!!!
2008-03-21RS4xx: attempt to fix TMDS/DVO supportAlex Deucher
XPRESS chips added a second set of FP control registers. I don't have the hw to test however.
2008-03-18R5xx: first pass at render support (untested)Alex Deucher
2008-03-18R5xx: bump tex/dst limits to 4096Alex Deucher
2008-03-14R3xx: odds and ends...Alex Deucher
still not working. - swizzle US output for BGR formats - no need to write to temps in ALU ops, write to output only - flush the PVS before updating
2008-03-14R3xx/R5xx: Fix magic numbers in vertex shadersAlex Deucher