summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-11-17radeon: deal with connectors sourced to the same encoderHEADmasterAlex Deucher1-0/+46
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 Deucher1-1/+3
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-17kms: check for 0 mask for cloned outputs.Dave Airlie1-0/+5
Signed-off-by: Dave Airlie <airlied@redhat.com>
2009-11-17kms: add cloning support.Dave Airlie2-18/+93
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 Deucher1-39/+18
we do the normalization and xforms in the vertex shader. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-16r600: fix num format in vtx fetchAlex Deucher1-26/+26
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-12radeon: man page updatesAlex Deucher1-2/+2
2009-11-11radeon: fix support for external tmds on some legacy chipsAlex Deucher1-12/+23
Should fix bug 11801. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-09r600/r700: typo, fix mask of DB_ALPHA_TO_MASKAlex Deucher1-3/+3
noticed by glisse.
2009-11-09IGP: some IGP chips report as AGPAlex Deucher1-1/+12
Set bus type appropriately. fixes bug 25002 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-05radeon: properly fix unused label warningsAlex Deucher1-0/+4
2009-11-05Revert "Fix warning about unused defined labels in radeon_exa_funcs.c."Alex Deucher1-12/+5
This reverts commit b6ac42cce2156880ac18b32e15acbff40b2f53e9. This patch is very broken.
2009-11-05Fix warning about unused defined labels in radeon_exa_funcs.c.Tomáš Chvátal1-5/+12
Signed-off-by: Tomáš Chvátal <scarabeus@gentoo.org>
2009-11-05EXA: fallback if no pMaskPicture->pDrawableAlex Deucher2-4/+24
A solid or gradient mask could be used for blending the source picture onto the destination picture. Fixes fdo bug 24838 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-05DCE3+: call transmitter init on mode setAlex Deucher4-17/+32
Generally this is done at post, but might not always be done with softboot or for connectors on docking stations. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-04ATOM/DCE3+: fix up usPixelClock calculation for Transmitter tablesAlex Deucher1-3/+5
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-11-01radeon/atom: fix tv-out on r5xxAlex Deucher2-4/+6
fixes bug 24796 Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-10-27ATOM: fix up DVO for DCE 3.xAlex Deucher1-2/+5
AdjustDisplayPll takes care of this for us.
2009-10-27radeon: fix DVO on AVIVO chipsAlex Deucher2-1/+16
DVO generally requires 2x ppll on AVIVO cards due to the way the tmds chip is wired up. Because of this, disable cloning of DVO outputs. fixes fdo bug 21857. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-10-27atom: loosen pll min output limitsAlex Deucher1-0/+9
Limiting the pll output range is a good thing generally as it limits the number of possible pll combinations for a given frequency presumably to the ones that work best on each card. That's why the limits are in the bios tables. However, certain duallink DVI monitors seem to like pll combinations that would be limited by this at least on pre-DCE 3.0 r6xx hardware. This might need to be adjusted per family or per clock range in the future. Fixes fdo bug 24727. Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-10-24Disable color tiling on r600/r700Luca Tettamanti1-0/+4
Not supported yet.
2009-10-23radeon: clamp the internal FB map to the aperture size v2Alex Deucher1-0/+12
We don't use the invisible memory yet and on cards with large amounts of vram this can cause the top of GART calculation to overflow. Fixes bug fdo bug 24301: http://bugs.freedesktop.org/show_bug.cgi?id=24301 v2: only clamp cards with more than 512 MB. This seems to cause problems on some older cards due to the way the drm and ddx set up the internal memory map.
2009-10-22R7xx: program additional CUR/GRPH regs for 40 bit addressesAlex Deucher3-0/+25
The *_HIGH regs are reversed. The secondary ones are in the primary block and vice versa.
2009-10-22ATOM: use indirect addressing for regs >= 0x10000Alex Deucher1-2/+17
2009-10-21ATOM: fix up get clock infoAlex Deucher3-24/+51
Newer revisions of the atom firmware table have changed. This helps select better pll dividers in some cases. Noticed by Mathias Froehlich.
2009-10-18radeon: fixup CustomEDID optionAlex Deucher2-22/+19
- add support for analog option to force edid to analog mode - fix compilation on older xservers - updated man page
2009-10-13radeon: add XV_CRTC attribute for textured videoAlex Deucher4-32/+87
This attribute allows the user to override which crtc is synced with when XV_VSYNC is enabled. This is useful for clone modes where the user can might want to override the default.
2009-10-12ATOM: minor cleanups to pll setupAlex Deucher1-4/+5
2009-10-09Fix some issues with CustomEDID supportCsillag Kristof1-1/+30
- Fixes a memory allocation problem introduced with the previous version of the CustomEDID patch (now in GIT), and - Enhances the syntax of the CustomEDID option so that I can force digital output, even if the EDID was acquired over an analog link.
2009-10-09r600 EXA: fix up mask reg mixupAlex Deucher3-5/+5
2009-10-09r600 EXA: fix some compile warningsAlex Deucher1-1/+2
2009-10-09r600 EXA: properly check planemaskAlex Deucher1-9/+44
We only support per-component masks.
2009-10-09Revert "radeon: clamp the internal FB map to the aperture size"Dave Airlie1-9/+0
This reverts commit 5f846360c46f5a989f5d0fde6d251cdbd61d4968. Numerous reports of system hangs since this, I'm guessing some sort of conflict with the drm memory setup. This code has always been fragile between kernel/userspace drivers.
2009-10-09Revert "kms: setup colormap and gamma correctly."Dave Airlie2-2/+85
This reverts commit 60d9685abddccec17c1a9a5ec48cbe9c92543e0f. which breaks colormap on 1.6 X server Conflicts: src/drmmode_display.c
2009-10-09kms: don't use scratch pixmaps at allDave Airlie1-35/+45
use our own wrapper to allocate a pixmap for wrapping a bo in.
2009-10-09drmmode: reload cursors on modesetDave Airlie1-1/+2
2009-10-07ATOM: rework crtc modesetAlex Deucher4-161/+142
- clean up tv timing handling - unify SetCRTCTiming and SetCRTCDTDTiming interfaces
2009-10-07ATOM: reorder crtc dpms based on bios recommendationsAlex Deucher2-5/+5
2009-10-07ATOM: add support for AdjustDisplayPll tableAlex Deucher1-26/+44
Depending on the output and clock, this table will adjust the pixelclock accordingly.
2009-10-07radeon: clamp the internal FB map to the aperture sizeAlex Deucher1-0/+9
We don't use the invisible memory yet and on cards with large amounts of vram this can cause the top of GART calculation to overflow. Fixes bug fdo bug 24301: http://bugs.freedesktop.org/show_bug.cgi?id=24301
2009-10-07radeon: fix rotation since mixed pixmaps.Dave Airlie1-1/+1
Passing null in here stops the mixed pixmap code doing it wrong, but I'm not 100% sure how it is meant to work, we have the same issue with the real front bo by the looks of it.
2009-10-06radeon: Fix duplicated bit settingsRoel Kluin2-6/+6
[agd5f: adapted from kms patch] Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-10-06Don't call radeon_cs_flush_indirect() without KMS.Michel Dänzer1-1/+4
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=24316 .
2009-10-05kms: assume accel is working is info ioctl return -EINVALJerome Glisse1-7/+8
-EINVAL should only happen if the info ioctl doesn't support the get accel query. This patch assume that on such case accel is working.
2009-10-05kms: only touch gamma stuff on 1.7Dave Airlie1-0/+2
for correct colormap operation you probably want 1.7
2009-10-05R1/2xx EXA: Minimise number of draw primitives used for Composite operations.Alex Deucher1-30/+80
2009-10-05kms: don't use scratch pixmaps when copying fbcon.Dave Airlie1-11/+22
scratch pixmaps seem to interact badly with mixed pixmaps, it appears some state may be getting left around in the privates somewhere, since scratch pixmap headers don't get destroyed.
2009-10-04radeon: add support for Custom EDIDCsillag Kristof5-1/+93
Allows you to specify an edid per output from a file to override what is detected by DDC. Useful for problematic monitors or KVM switches that block DDC. Specifying an EDID that is not compatible with your monitor could damage your monitor so use with caution. agd5f: cache the custom edid at startup so we don't have to read it from file every time the output is queried.
2009-10-05kms: setup colormap and gamma correctly.Dave Airlie2-86/+5
We need to program the gamma at modeset. no need to use old cmap interface at all.
2009-10-04R6/7xx EXA: Add support for BGRA picture formats.Alex Deucher1-5/+34
Also add mysteriously missing case statements for ABGR destination formats.