summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-04-01r600/exa: further cleanup, use the object struct in the accel state.HEADmasterDave Airlie5-239/+196
This cleans up the accel state objects as well. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-01r600: cleanup wasteful variables.Dave Airlie1-56/+36
Just assign directly to the structs. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-01r600: reduce function call overhead.Dave Airlie3-125/+233
Create a small accel object that can be used to reduce the amount of parameters passed to SetAccelState. This can be cleaned up a lot more. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-30Add support for MacModel autodetection on OpenBSD.Owain G. Ainsworth1-0/+71
This allows radeon-equipped macs to work without an xorg.conf on openbsd. Patch originally written by Mark Kettenis (kettenis@openbsd.org)
2010-03-26radeon: add support eDP connectors with and LCD device tagAlex Deucher1-1/+6
should fix fdo bug 27322
2010-03-26radeon: fix name string for eDPAlex Deucher1-1/+2
2010-03-23r6xx+ EXA/Xv: add a R600SetAccelState functionAlex Deucher3-405/+374
This moves CS bo checking and alignment checks into a central location. It also cleans up the code.
2010-03-23r6xx+ EXA: always use a temp surface for overlapping copiesAlex Deucher1-243/+29
The scanline based fallback code was complex and added a lot of overhead. It also didn't work with kms.
2010-03-22r6xx+ EXA: always use the accel_state state in DoPrepareCopyAlex Deucher2-11/+16
2010-03-22r6xx EXA/Xv: track src/dst domainsAlex Deucher4-31/+89
Much of the code is shared, so track the src/dst domains so we make sure the uses consistent domains for each bo.
2010-03-17XAA: disable render accelAlex Deucher1-0/+1
It's been reported broken for a while. Should fix fdo bug 27151, others.
2010-03-18radeon: avoid using DRI1 init path on DRI2 driver.Dave Airlie3-29/+63
I was playing with multi-seat and found this code, fixed it up to be sane and more DRI2 like. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-16kms: fix ums naming compat for DisplayPortAlex Deucher1-1/+2
2010-03-15dump version for rc releaseAlex Deucher1-1/+1
2010-03-15Fix some word accesses in AtomBios to work on all architectures.Michael Cree1-8/+9
The UINT16LE_TO_CPU(), etc., macros are used in the AtomBios code to fix up endian issues but they do not address bad alignment or assist architectures that cannot perform hardware byte or word accesses. This patch inserts use of the ldw_u(), etc., interface of the Xserver into certain AtomBios accesses to address alignment issues. This resolves Debian bug 572311, namely that the driver when compiled for generic Alpha architecture (i.e. doesn't use the byte-word extension) resulted in no display output on certain Radeon cards. Signed-off-by: Michael Cree <mcree@orcon.net.nz>
2010-03-15r6xx/r7xx: fix domain handling in accel codeAlex Deucher4-49/+49
Noticed by Pauli and Michel on IRC. Improves GetImage performace by a factor of ~10.
2010-03-15radeon: remove some leftover debugging outputAlex Deucher1-2/+0
2010-03-10radeon: add support for pal on legacy IGP chipsAndrzej Hajda2-10/+28
Based on my initial non-working patch. Fixes some element of fdo bug 12007
2010-03-09atom: i2c gpio fixesAlex Deucher1-57/+51
Basically a port of my kms patch. This allows us to remove some quirks.
2010-03-08Don't check for Xinerama.Matt Turner1-1/+0
It doesn't seem to be used anywhere, so don't require it. CC: Jerome Glisse <jglisse@redhat.com> CC: Alex Deucher <alexdeucher@gmail.com> CC: Dave Airlie <airlied@redhat.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2010-03-05radeon: disable frac fb div with new pll codeAlex Deucher1-2/+2
fixes fdo bug 26897
2010-03-03radeon: add new RS880 pci idAlex Deucher6-2/+8
2010-03-02radeon: bump configure.acDave Airlie1-1/+1
2010-02-27pciids: hopefully fix HPDave Airlie2-1/+4
2010-02-26rv740: disable dfs workaround for drm 1.32+Alex Deucher1-3/+5
rv740 pipe setup was fixed in 2.6.33
2010-02-26Use RADEON_ALIGN instead of open coding it.Matt Turner15-89/+89
Also fix some RADEON_ALIGN(x, 63), which would return incorrect results for odd x. Though this shouldn't happen, it's still not right. You wouldn't ever write (x + 62) & ~62 which is clearly wrong (and what it expands to). CC: Jerome Glisse <jglisse@redhat.com> CC: Alex Deucher <alexdeucher@gmail.com> CC: Dave Airlie <airlied@redhat.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2010-02-26Use/define RADEON_GPU_PAGE_SIZE instead of sprinkling 4096 everywhere.Matt Turner8-30/+27
Also, define RADEON_BUFFER_ALIGN in terms of it, and replace some RADEON_ALIGN(x, RADEON_BUFFER_ALIGN) with RADEON_ALIGN(x, RADEON_GPU_PAGE_SIZE) since this is really what was intended. CC: Jerome Glisse <jglisse@redhat.com> CC: Alex Deucher <alexdeucher@gmail.com> CC: Dave Airlie <airlied@redhat.com> Signed-off-by: Matt Turner <mattst88@gmail.com>
2010-02-26pci: add HP vendor idDave Airlie1-0/+1
2010-02-26add more triple-head server IDCooper Yuan1-12/+17
2010-02-25clean up kms zaphod handlingJames Le Cuirot3-25/+15
Taken from James patch on bug 24523 agd5f: adapt to the current code
2010-02-25update ZaphodHeads optionAlex Deucher4-34/+18
Now that the screen section mapping is fixed, Make the option per-instance and allow multiple outputs to be specified; e.g., DVI-0 and HDMI-0 associated with instance 0 and LVDS and VGA-0 associated with instance 1.
2010-02-25zaphod: Fix entity instance assignment.James Le Cuirot1-6/+2
Each screen needs to have a pointer back to its device's entity instance, Currently Screen1 is pointing to Screen0's instance so when it comes to match up the screen sections with the detected screens, Screen0 gets chosen in both cases. See bug 24523
2010-02-23radeon: fixes for zaphodheads optionAlex Deucher2-11/+21
Needed for systems with more than two outputs. Both KMS and non-KMS zaphod work on systems with more than two outputs now.
2010-02-23zaphod: hopefully fix kms + zaphodDave Airlie2-10/+16
2010-02-22AVIVO: set frac fb divider pll flagAlex Deucher1-2/+4
matches previous behavior
2010-02-22radeon: update new pll algoAlex Deucher4-83/+170
- add support for pre-avivo chips - add support for fixed post/ref dividers - add support for non-fractional fb dividers By default avivo chips use the new algo and pre-avivo chips use the old algo. Use the "NewPLL" option to toggle between them (set to TRUE for the new algo, FALSE for the old).
2010-02-18RS600: add connector quirkAlex Deucher1-0/+10
System lists DVI port as HDMI. fixes fdo bug 26605
2010-02-18r6xx/kms: when reseting BO force default state emissionJerome Glisse1-0/+4
In KMS world each cs need to fully initialize the 3D engine when we were erasing cs in IBDiscard for r6xx we weren't forcing reemission of default state. This patch force this emission. Fix : http://bugs.freedesktop.org/show_bug.cgi?id=26603 http://bugzilla.kernel.org/show_bug.cgi?id=15284
2010-02-17radeon: add ZaphodHeads optionAlex Deucher5-11/+87
Allows users that want to use zaphod mode to select which xrandr outputs are assigned to which head. E.g., Option "ZaphodHeads" "LVDS,VGA-0" will assign LVDS to the first zaphod driver instance and VGA-0 to the second instance.
2010-02-15EXA: Fix order of coordinates passed to radeon_pick_best_crtc().Michel Dänzer3-5/+5
The wrong order prevented tearing avoidance from working with EXA/DRI2.
2010-02-15Allocate BOs for 'video offscreen surfaces' and 'TV-in' in VRAM.Michel Dänzer1-2/+2
I think these can only really work in VRAM, though right now there's probably nothing to prevent them from getting evicted...
2010-02-15Allocate Xv buffers to GTT.Pauli Nieminen6-11/+21
KMS doesn't have acceleration for upload to vram. memcpy/memmove to VRAM directly is very slow (40M/s in benchmark) which causes visible problems to video. Allocating video buffer in GTT will give good performance (350-450M/s) for memmove operation. This is nice performance boost for Xv under KMS. Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
2010-02-15Use memcpy instead of memove for RADEONSwapCopy.Pauli Nieminen1-1/+1
memcpy has about 25% better performance than memmove when destination is GTT (wc caching). Changing memmove to memcpy in SwapCopy will reduce CPU time spent moving data between host and GPU. memcpy will specially help Xv when playing high resolution videos. The swap path doesn't support overlapping memory copies either so extra safety is not worth the performance hit in commonly used code path. Signed-off-by: Pauli Nieminen <suokkos@gmail.com> [ Michel Dänzer: Fixed up whitespace ]
2010-02-12r6xx/r7xx: implement EXA vline supportAlex Deucher2-16/+102
2010-02-12radeon: consolidate crtc selector for vline waitAlex Deucher8-63/+41
Use the Xv version as it takes into account the area covered by the op rather than just picking the largest crtc area.
2010-02-05r500: fix relocs for Xv planar videoAlex Deucher1-3/+3
fixes fdo bug 26445
2010-02-05rs400/rs480: mc idle bit is bit 2 like original radeonDave Airlie1-0/+6
backport from a KMS fix, the rs400/480 mc idle is bit 2 not bit 4. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-04config: remove dead LINUXDOC macro usageGaetan Nadon1-2/+0
This module does not generate LINUXDOC documentation. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-02-04evergreen: minor clean up in transmitter setupAlex Deucher1-3/+2
both link and encoder must be set for linkb
2010-02-04r600: reduce number of cache flushesAlex Deucher1-3/+1
We don't need to flush so often. Next step would be to move the flushing to the drm and only flush after each command buffer rather than each draw.