Commit Graph

195 Commits

Author SHA1 Message Date
Adam Jackson
75ce40850e savage 2.3.0 xf86-video-savage-2.3.0 2009-07-02 11:39:22 -04:00
Adam Jackson
a75f0eaba6 Remove useless loader symbol lists. 2009-05-28 15:16:34 -04:00
Alex Villacís Lasso
f274275535 Do not use XAAGetCopyROP outside of XAA-specific code
The DRI code attempts to use XAAGetCopyROP without checking whether XAA or EXA is in effect. This results in the server crashing with an undefined-symbol error when enabling EXA, then starting glxgears under GNOME/Metacity and attempting to drag the glxgears window.

The EXA code happens to have a functional duplicate of the required code under the name SavageGetCopyROP(). This patch moves the code to savage_accel.c where it is now shared between EXA and the DRI code.

It is disturbing that this has not been caught before.
2009-05-27 18:00:11 -04:00
Alex Villacís Lasso
a5ad3e8f50 Implement use of Mastered Image Transfer through AGP for UploadToScreen EXA acceleration.
Under some conditions (documented in this patch), the UploadToScreen implementation can make use of the AGP scratch buffer used for XVideo as a convenient source for Mastered Image Transfer. The previous implementation is still available as a fallback for when AGP acceleration is not possible. This requires the AGP scratch buffer to be persistent, so the XVideo code is also made aware of an existing DRM mapping for the scratch buffer.
2009-05-27 17:59:48 -04:00
Alex Villacís Lasso
0f4369c95b Fix crash by null pointer access when DRI is not available. 2009-03-23 12:26:27 -04:00
Chris Ball
343b2f312b Revert EXA 3 build fix.
The EXA developers have backed out this ABI bump.

Signed-off-by: Chris Ball <cjb@laptop.org>
2009-02-27 10:55:58 -05:00
Chris Ball
08692dd381 configure: use AC_DEFINE instead of shell substitution
(This is just cosmetic.)

Signed-off-by: Chris Ball <cjb@laptop.org>
2009-02-24 12:54:13 -05:00
Chris Ball
26f9e78d9b Build fix: EXA now requires -DEXA_DRIVER_KNOWN_MAJOR=3
This driver doesn't use {Prepare,Finish}Access, so this is safe.

Signed-off-by: Chris Ball <cjb@laptop.org>
2009-02-24 11:54:06 -05:00
Alan Coopersmith
f4a3a1cd1b Add README with pointers to mailing list, bugzilla & git repos 2009-01-30 20:59:46 -08:00
Tormod Volden
0fae482358 Savage: Do not add panel modes when there is no panel
SavageGetPanelInfo will reset DisplayType if the panel is not
active, so check again before calling SavageAddPanelMode so that
bogus modes are not added.

This fixes startup failures in some cases, for instance when there is no
real panel and EDID is missing. The bogus sync ranges (typically 0 Hz)
would also block the default sync ranges from being applied.

Thanks to Peter Belew for testing.
https://bugs.launchpad.net/bugs/294899
2009-01-22 01:22:53 -05:00
Alex Villacís Lasso
8241b8edaf EXA: UTS Optimization
use one memcpy per scanline instead of a conditional inside
a loop for every dword
2009-01-16 16:22:42 -05:00
Alex Villacís Lasso
50bcd4bd6f Add AGPforXv Option
Instructs the BCI Xv pixel formatter to use AGP memory as a scratch buffer
for Xv image upload
2009-01-16 16:20:23 -05:00
Alex Villacís Lasso
91d5c09c89 YUV packed buffer and YV12 planar buffer (if required) are now separate allocations
BCI-mediated planar conversion can now use arbitrary offset in framebuffer as planar
buffer, no longer restricted to space past packed buffer.
2009-01-16 16:18:25 -05:00
Alex Villacís Lasso
9bcbdcc0e2 Document the existence of the IgnoreEDID option 2009-01-16 16:16:46 -05:00
Alan Coopersmith
0cf24c6f66 Remove xorgconfig & xorgcfg from See Also list in man page 2009-01-09 16:33:29 -08:00
Alex Villacís Lasso
aea0496f66 Fix EXA Copy
patch from Alex Villacís Lasso with minor updates from me
2008-11-06 16:10:30 -05:00
Alex Villacís Lasso
e6b6506a0e Bug #18378: Use xfVillKeyHelperDrawable if available. 2008-11-06 14:11:49 -05:00
Adam Jackson
de3350e793 no, really, savage 2.2.1 xf86-video-savage-2.2.1 2008-05-21 16:04:31 -04:00
Adam Jackson
5c0617874a Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-savage 2008-05-21 16:03:25 -04:00
Adam Jackson
97a9d24768 savage 2.2.1 2008-05-21 16:01:37 -04:00
Adam Jackson
fd20f5ddc2 Fake sync ranges for panels with no EDID.
Red Hat bug #243589.
2008-05-21 16:00:40 -04:00
Adam Jackson
09c4dcc658 Don't try to call vbeModeInit(), it doesn't exist and never will. 2008-05-21 15:58:24 -04:00
Dave Airlie
a01c9d1293 savage/pciaccess: don't try to map aperture larger than region window 2008-05-10 15:06:18 +10:00
Dave Airlie
69eca3b834 savage: fix typos in error message 2008-05-10 14:58:14 +10:00
Alex Villacís Lasso
9cb124b354 EXA upload to screen must honor pitch of the source data 2008-04-10 12:51:47 -04:00
Adam Jackson
d0cbce17e1 savage 2.2.0 xf86-video-savage-2.2.0 2008-03-19 15:15:35 -04:00
Adam Jackson
6adc23cb19 Remove use of deprecated {DE,}ALLOCATE_LOCAL. 2008-03-19 15:12:49 -04:00
Adam Jackson
371d8fbae6 Death to RCS tags. 2008-03-19 15:06:46 -04:00
Matthieu Herrb
dc6a410290 Makefile.am: nuke RCS Id 2008-03-08 23:47:57 +01:00
Julien Cristau
908b155161 fixup pciaccess version detect 2008-03-07 17:10:52 +01:00
Alex Villacs Lasso
eeea6468df Fix broken downscale past 2:1 - MM8190 and MM8198 can be used together for arbitrary downscale 2008-02-28 19:32:42 -05:00
Tormod Volden
d838ed93a2 Bug #11139: Remove some dead code. 2008-02-24 21:46:56 -05:00
Alex Villacís Lasso
583051fce0 [PATCH] Do not wait for vertical retrace anymore on old streams engine. 2008-01-30 21:49:05 -05:00
Alex Villacís Lasso
52029dede1 [PATCH] Reset lastKnownPitch to 0 right after enabling streams. 2008-01-30 21:47:42 -05:00
Alex Villacís Lasso
efd4ae6fda [PATCH] Prevent use of BCI for YV12 -> YUY2 conversion from scribbling past the end of the allocated video buffer. 2008-01-30 21:46:11 -05:00
Alex Villacís Lasso
ee5b54a664 [PATCH] BCI can only handle widths that are multiple of 16, so only use BCI for these (for now).
Small optimizations (use memcpy instead of copy loop).
2008-01-30 21:45:19 -05:00
Alex Villací­s Lasso
1169cb5bd9 Implement driver option IgnoreEDID
Since some time, savage enforces video-mode and max. pixel clock
validation through EDID, which is great for autoconfiguration, but
prevents users from defining higher screen resolutions, even though the
monitor is capable of it. This patch implements the IgnoreEDID option so
that the EDID monitor information can be explictly disabled.
2008-01-19 12:08:50 -05:00
Alex Villací­s Lasso
ce182d1883 Fix ambiguous operator precedence
In the modified lines, the logical-not binds first to psav->videoFlags,
not to (psav->videoFlags & VF_STREAMS_ON). If more flags are ever
implemented, they could interfere with this check. More of a preventive
patch than anything else.
2008-01-19 12:06:25 -05:00
Alex Villací­s Lasso
88141fd212 Make sure MMIO region is mapped VIDMEM_MMIO, not VIDMEM_FRAMEBUFFER 2008-01-19 12:02:56 -05:00
Alex Deucher
fd2a598e64 Fix reversed logic in SavageMapMem() 2008-01-19 12:00:16 -05:00
Alex Deucher
9c959f53ca fix the build for the non-pci-rework case (compile tested only) 2007-09-14 20:21:12 -04:00
Alex Deucher
846a69f70d fix segfault from pScrn->currentMode
should fix bug 12260
2007-09-14 20:13:33 -04:00
James Cloos
53a2088c55 Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-savage 2007-09-03 06:08:13 -04:00
James Cloos
7da1a03d4b Add *~ to .gitignore to skip patch/emacs droppings 2007-09-03 05:52:43 -04:00
Ian Romanick
0287432c65 Fix odd typo. 2007-08-31 13:07:17 -07:00
Ian Romanick
514dc647d1 Update to use new libpciaccess interfaces for mapping with MTRR support. 2007-08-30 17:53:11 -07:00
Ian Romanick
1eec792391 Merge branch 'pci-rework' 2007-08-23 18:21:37 -07:00
James Cloos
4a87cab276 Rename .cvsignore to .gitignore 2007-08-23 19:25:53 -04:00
Ian Romanick
ffc5ba7f0b Merge PCI-rework support and "classic" PCI interface support into one tree
First pass at merging both trees.  So far, this has only been compile
tested.  I need to dig out a savage card to put in a system for
testing, so it may take another hour or two.
2007-08-22 12:38:14 -07:00
Ian Romanick
68ceead721 Merge branch 'master' into pci-rework
Conflicts:

	src/savage_driver.h
2007-08-22 11:45:43 -07:00