summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-12-14dri: be more useful if disabling DRI due to KMS/UMS mismatch.Corbin Simpson
It's only fair. Compile-tested only. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-12-10ATOM: split set base/format into separate functionsAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-12-09AVIVO: add new PLL codeAlex Deucher
This should hopefully help the problems with flickering and blinking monitors reported on some systems. If there are problems, the old PLL algorithm can be selected with: Option "NewPLL" "FALSE" in the device section of your X config. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-12-03radeon: fix crtc2 dpmsMatthijs Kooijman
noticed by Matthijs Kooijman on fdo bug 22140
2009-12-02radeon: only read RADEON_PPLL_REF_DIV for ref div on pre-avivoAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-12-02radeon: Lift hardcoded limit from RADEONQueryImageAttributesKusanagi Kouichi
The dimension of an XvImage is limited to 2048 x 2048 even if an adaptor supports larger image. XvCreateImage and XvShmCreateImage lower the width or height of an image. XvPutImage and XvShmPutImage return BadValue. The cause is that 2048 is hardcoded in RADEONQueryImageAttributes.
2009-12-02Merge remote branch 'origin/displayport'Dave Airlie
2009-12-01r600: fix multi-operation in single batch support.Dave Airlie
This ports the mesa DMA buffer handling with the 3 lists, Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-30R600: fix some warningsKusanagi Kouichi
2009-11-30atom: pull misc mode info for lvds panel mode from bios tablesAlex Deucher
sync polarity, etc. This will likely fix LVDS problems on some laptops. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-27radeon: clean up DP codeAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-27r600/accel: cleanup and merge a lot of the accel functionsDave Airlie
All of the drawing ops were the exact same modulo the vtx size, this along with the vertex buffer wrapping code could all be consolidated into a smaller set of functions. This also adds 2 VBO which we switch between, and merges a #define to enable the multiple operations in one CS under KMS mode. Multi-operation still isn't working though. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-26dce3: CV1/TV1OutputControl tables didn't go away until dce3.2Alex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-26kms: Fix resizing when acceleration is disabledJerome Glisse
When acceleration is disabled we need to reallocate a new shadow framebuffer and we should also avoid calling any EXA function as EXA is disabled in such case.
2009-11-26dce3: no CV1 or TV1 Output Control tables anymore.Dave Airlie
According to the DCE3 docs we should only use DAC1/2 not CV1/TV OutputControl, also my rv730 bios doesn't have any CV1/TV tables. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-26atombios: CV mode retrival was broken.Dave Airlie
a) crev and frev are reversed b) my rv730 bios only has one mode in it, so bounds check the table size.
2009-11-26radeon: fix typo in unused as of yet CV codeDave Airlie
2009-11-26fixes displayport for me hereDave Airlie
2009-11-26displayport: cleanup call dp from dpms on instead.Dave Airlie
2009-11-25dri2: Use drmGetDeviceNameFromFd() instead of open coded loop.Kristian Høgsberg
2009-11-25Revert "r600: enable multiple operations in one CS"Dave Airlie
turn this off for now, on my rv635 desktop, I started getting blanks in places in firefox and the odd bit of font corruption, need to track that down. This reverts commit 985a065518b1d33599de33f7fe082d3302db58a6.
2009-11-25radeon/exa: change option to determine exa pixmap usage.Dave Airlie
This moves to a boolean instead of using VRAM sizing. as per Michel's suggestions on list. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-25r600/xv: drop inited 3d false in xv codeDave Airlie
2009-11-25r600: enable multiple operations in one CSDave Airlie
This switches on multiple ops in a single CS under KMS/DRI2. It gets for on a Pentium D 3 + rv740 from 330,000 to 500,000 with x11perf -aa10text. It also knocks a couple of seconds of gtkperf -a Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-25r600: fixup problems with EXA operation reset for multiple opsDave Airlie
To put multiple ops into one CS, you can't just discard the whole IB. This add supports for reset the CS cdw to the correct place after an op discards. Still doesn't enable the final accel bits.
2009-11-25kms: flush cs on close screen.Dave Airlie
this is needed for server recycle. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-25radeon: fix check for no work in operationDave Airlie
2009-11-25r600: refactor code to help future acceleration speedups.Dave Airlie
This changes the vertex buffer index to be an offset, and records the start of the vb for each operation and uses that to set the operations up. This still flushes after each operation to make sure we have no regressions in non-kms/kms cases. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-25kms: allow prepare copy to fail without dyingDave Airlie
2009-11-24radeon/kms: drop special r600 indirect flushDave Airlie
This just merges it with the main kms cs flush
2009-11-24r600: enable mixed pixmapsDave Airlie
2009-11-23DCE3.2: fix uniphy2 dvi issuesAlex Deucher
In some cases the atom transmitter table sets the golden value of this reg differently which some monitors don't like. I haven't had time to dig further, so this works around it for now. Fixes fdo bug 24313 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-23radeon: fix warning in printfDave Airlie
2009-11-23radeon: surround mixed pixmaps usage with ifdef check for old serversDave Airlie
2009-11-23radeon: avoid using hw pixmaps when we have little VRAM.Dave Airlie
This patch returns NULL for pixmap creation when we are using mixed pixmaps and the pixmap has a size. The size check is necessary for the front buffer. We add a flag to force pixmap creation for certain pixmaps that need to be hw, like the DRI2 and Xv ones. Idea from Michel and workarounds from Ben Skeggs. v2: add Option "EXALowVRAM" to allow configuring this, value in MBs. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-20dp fix timingAlex Deucher
aux channel atom command table delay is 10 usec units this gets the link training working, but alas, no image.
2009-11-20r300: render target limit is 2560Alex Deucher
limit was increased to 4021 in r4xx. fixes fdo bug 25191. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-19DP: hack that makes DP work.Alex Deucher
Something's wrong with the status check.
2009-11-19wipAlex Deucher
2009-11-20kms: recalculate the flush limits after screen resize.Dave Airlie
When we resize the front buffer we need to reduce the flush limits appropriately. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-20radeon: r100/r200 have a 2047 scissor limitDave Airlie
We were overflowing this in my case with a 2704 width desktop, so videos were stopping around 700 bytes across the screen. can I haz shatter already? Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-19DP wipAlex Deucher
- use coherent - fix up lane/clock numbers
2009-11-19.gitignore: use common defaults with custom section # 24239Gaetan Nadon
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-11-18more dp cleanupAlex Deucher
- clean up handling of linkb, etc. - add support for ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH to existing transmitter control function - fix lots of warnings
2009-11-18radeon: pull previous displayport work into masterAlex Deucher
2009-11-17radeon: deal with connectors sourced to the same encoderAlex Deucher
Some systems have multiple connectors connected to the same encoder; e.g., DVI and HDMI connected to the same encoder with the same ddc line. Since we expose connectors as xrandr outputs, randr treats them separately which results in it trying to source the same encoder to different crtcs. If we have an HDMI and DVI-D port on the same encoder, pick the one to be considered connected based on the edid (HDMI if edid indicates HDMI, DVI otherwise). Also, don't turn off (dpms) encoders that are shared. Fixes fdo bug 21767. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-17radeon: fix potential memory leak in ddc codeAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-17kms: check for 0 mask for cloned outputs.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-17kms: add cloning support.Dave Airlie
We have to translate from the kernel encoder cloning to the randr connector cloning, we do this by constructing an encoder mask per output and an encoder cloning mask per output then comparing them. Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-16r600: remove un-needed format conversionsAlex Deucher
we do the normalization and xforms in the vertex shader. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>