summaryrefslogtreecommitdiff
path: root/src/radeon_reg.h
AgeCommit message (Collapse)Author
2009-02-23RS600: fix up MC setupAlex Deucher
Please test if you have an RS600
2009-02-19R6xx/R7xx: wait for MC idle when changing the MCAlex Deucher
should fix bug 19984
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
2008-03-13R3xx: set the texture id and add some register infoAlex Deucher
2008-03-13R3xx/R5xx: enable blendingAlex Deucher
2008-02-28AVIVO: disable dithering on DFPsAlex Deucher
This should fix the color banding some people have noticed. Also save/restore DDIA regs on RS6xx
2008-02-27R500: fragment program clean up and magic number conversionAlex Deucher
2008-02-27R300: fix up magic numbers in fragment programAlex Deucher
2008-02-26R300: Fix clamping and pitch for textured videoPeter Zubaj
2008-02-26R300/R500: set the number graphics pipes properlyAlex Deucher
This should fix the checkerboard issues on r300/r350 cards.
2008-02-26R300/R500: clean up magic numbers in textured videoAlex Deucher
2008-02-26regs: fix spelling mistakeDave Airlie
pointed out by plaes on irc
2008-02-25R300/R500: clean up magic numbers in render codeAlex Deucher
2008-02-24R300: fill in some more 3D bitfieldsAlex Deucher
2008-02-23r500: initial rotate support - not fully working yet.Dave Airlie
Just an example of how to setup and run the r500 3D engine for rotation. this rotates for me but I get some strange clipping on the bottom of my screen