summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-01-25savage: Fix building with TRACEON definedTormod Volden
Two warnings and an error.
2011-01-25savage: Setup tiled surface registers in SavageEnterVTTormod Volden
These registers are cleared after suspend/resume, so set them up again in EnterVT.
2011-01-25savage: Factor out a SAVAGEDRISetupTiledSurfaceRegs functionTormod Volden
The tiled surface registers were only setup in SAVAGEDRIScreenInit, however, after suspend/resume these registers must be set up again. So factor it out in a new function so it can be reused.
2011-01-25savage: Cast all handles before printing themTormod Volden
Removes the last bunch of -Wall build warnings. savage_dri.c:490: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 5 has type ‘drm_handle_t’ ...
2011-01-25savage: Fix ambiguity in SavageLoadPaletteSavage4Tormod Volden
It looks like "!" was meant for logic negation and the parentheses were wrong. I don't have a Savage 4 so I can't check if this fixes or breaks anything.
2011-01-25savage: Drop unused variables and functionsTormod Volden
Silence -Wall warnings. The functions are just #if'ed out, to be left for inspiration.
2011-01-25savage: More (intermediate) casts to silence warningsTormod Volden
savage_dga.c: In function ‘Savage_OpenFramebuffer’: savage_dga.c:393: warning: cast to pointer from integer of different size savage_dri.c: In function ‘SAVAGEDRIScreenInit’: savage_dri.c:924: warning: cast to pointer from integer of different size
2011-01-25savage: Replace deprecated x(c)alloc/xfree with m/calloc/freeTormod Volden
sed -i 's/xalloc/malloc/g; s/xcalloc/calloc/g; s/xfree/free/g' Also replace xrealloc with realloc.
2011-01-25savage: Add casts to silence build warningsTormod Volden
savage_exa.c: In function ‘SavageUploadToScreen’: savage_exa.c:545: warning: passing argument 1 of ‘memcpy’ discards qualifiers from pointer target type /usr/include/bits/string3.h:49: note: expected ‘void * restrict’ but argument is of type ‘volatile CARD32 *’ savage_video.c: In function ‘SavagePutImage’: savage_video.c:2007: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘drmSize’ savage_video.c:2007: warning: format ‘%ld’ expects type ‘long int’, but argument 5 has type ‘int’
2010-11-25savage: fix use of privates without initialisationKeith Packard
Fixes bug 31614. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-04-26Fix builds when XF86DRI is undefinedAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-10-22.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-07-28savage: move abi check down for RACDave Airlie
2009-07-28savage: change to using ABI version checkDave Airlie
2009-07-28savage: update for resources/RAC API removalDave Airlie
2009-07-16Update to xextproto 7.1 support.Peter Hutterer
DPMS header was split into dpms.h (client) and dpmsconst.h (server). Drivers need to include dpmsconst.h if xextproto 7.1 is available. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-28Remove useless loader symbol lists.Adam Jackson
2009-05-27Do not use XAAGetCopyROP outside of XAA-specific codeAlex Villacís Lasso
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-27Implement use of Mastered Image Transfer through AGP for UploadToScreen EXA ↵Alex Villacís Lasso
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-03-23Fix crash by null pointer access when DRI is not available.Alex Villacís Lasso
2009-01-22Savage: Do not add panel modes when there is no panelTormod Volden
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-16EXA: UTS OptimizationAlex Villacís Lasso
use one memcpy per scanline instead of a conditional inside a loop for every dword
2009-01-16Add AGPforXv OptionAlex Villacís Lasso
Instructs the BCI Xv pixel formatter to use AGP memory as a scratch buffer for Xv image upload
2009-01-16YUV packed buffer and YV12 planar buffer (if required) are now separate ↵Alex Villacís Lasso
allocations BCI-mediated planar conversion can now use arbitrary offset in framebuffer as planar buffer, no longer restricted to space past packed buffer.
2008-11-06Fix EXA CopyAlex Villacís Lasso
patch from Alex Villacís Lasso with minor updates from me
2008-11-06Bug #18378: Use xfVillKeyHelperDrawable if available.Alex Villacís Lasso
2008-05-21Merge branch 'master' of ↵Adam Jackson
git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-savage
2008-05-21Fake sync ranges for panels with no EDID.Adam Jackson
Red Hat bug #243589.
2008-05-21Don't try to call vbeModeInit(), it doesn't exist and never will.Adam Jackson
2008-05-10savage/pciaccess: don't try to map aperture larger than region windowDave Airlie
2008-05-10savage: fix typos in error messageDave Airlie
2008-04-10EXA upload to screen must honor pitch of the source dataAlex Villacís Lasso
2008-03-19Remove use of deprecated {DE,}ALLOCATE_LOCAL.Adam Jackson
2008-03-19Death to RCS tags.Adam Jackson
2008-02-28Fix broken downscale past 2:1 - MM8190 and MM8198 can be used together for ↵Alex Villacs Lasso
arbitrary downscale
2008-02-24Bug #11139: Remove some dead code.Tormod Volden
2008-01-30[PATCH] Do not wait for vertical retrace anymore on old streams engine.Alex Villacís Lasso
2008-01-30[PATCH] Reset lastKnownPitch to 0 right after enabling streams.Alex Villacís Lasso
2008-01-30[PATCH] Prevent use of BCI for YV12 -> YUY2 conversion from scribbling past ↵Alex Villacís Lasso
the end of the allocated video buffer.
2008-01-30[PATCH] BCI can only handle widths that are multiple of 16, so only use BCI ↵Alex Villacís Lasso
for these (for now). Small optimizations (use memcpy instead of copy loop).
2008-01-19Implement driver option IgnoreEDIDAlex Villací­s Lasso
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-19Fix ambiguous operator precedenceAlex Villací­s Lasso
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-19Make sure MMIO region is mapped VIDMEM_MMIO, not VIDMEM_FRAMEBUFFERAlex Villací­s Lasso
2008-01-19Fix reversed logic in SavageMapMem()Alex Deucher
2007-09-14fix the build for the non-pci-rework case (compile tested only)Alex Deucher
2007-09-14fix segfault from pScrn->currentModeAlex Deucher
should fix bug 12260
2007-08-31Fix odd typo.Ian Romanick
2007-08-30Update to use new libpciaccess interfaces for mapping with MTRR support.Ian Romanick
2007-08-23Merge branch 'pci-rework'Ian Romanick
2007-08-23Rename .cvsignore to .gitignoreJames Cloos