summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-02-01Changing result parameter type for ScreenWakeupHandlerProcPtrKevin Brace
For ABI_VIDEODRV_VERSION >= 23, it was changed to int from unsigned long. Signed-off-by: Kevin Brace <kevinbrace@gmx.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2018-12-13Eliminate unused variable compilation warningsKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-13Eliminate set but not used variable compilation warningsKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-06-26Add check for max[HV]Value to ValidMode hookStefan Dirsch
xorg-server 1.20 removed this check, so implement this in the driver itself. Signed-off-by: Stefan Dirsch <sndirsch@suse.de> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2017-07-17xf86-video-savage: remove the GlxSetVisualConfigs stub and friendsEmil Velikov
The function was an empty since 2008 at least. Remove it alongside the unused GLX visuals code. With this all the GL/GLX dependencies in the driver are gone. Cc: Stefan Dirsch <sndirsch@suse.de> Cc: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2016-07-19Adapt Block/WakeupHandler signature for ABI 23Adam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-04-27Disable tiling on SuperSavage by defaultStefan Dirsch
Xserver cannot be started with Tiling enabled on SuperSavage. https://bugzilla.opensuse.org/show_bug.cgi?id=805380 Signed-off-by: Stefan Dirsch <sndirsch@suse.de> Acked-by: Hans de Goede <hdegoede@redhat.com>
2015-05-08Fix compiler warnings with recent X serversJulien Cristau
savage_driver.c:1228:12: warning: assignment discards 'const' qualifier from pointer target type if ((s = xf86GetOptValString(psav->Options, OPTION_ROTATE))) { ^ Signed-off-by: Julien Cristau <jcristau@debian.org>
2014-07-29dri: Stop (uselessly) initializing the ValidateTree hooksAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Use own thunk function instead of vgaHW*WeakAdam Jackson
I plan to remove the Weak functions from a future server. Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-01-07Include xf86Modes.h to use functions from hw/xfree86/modes/xf86Modes.c.Jeremy White
Signed-off-by: Jeremy White <jwhite@codeweavers.com> Reviewed-by: Robert Morell <rmorell@nvidia.com>
2013-09-19Drop miInitializeBackingStore() callAlexander Grothe
It was only needed up to xserver 1.4 and is not supported in the recent xserver versions. Thanks to Alexander Grothe for reporting the issue and providing the fix. https://bugs.freedesktop.org/show_bug.cgi?id=65444 > commit 1cb0261ef54b7dd6a7ef84e1c3959e424706228b > Author: Daniel Martin <consume.noise@gmail.com> > Date: Thu Sep 6 00:38:26 2012 +0200 > > dix: Delete mibstore.h > > Since Nov 2010 (commit c4c4676) the only purpose of mibstore.h was to > define an empty function (miInitializeBackingStore()) for backward > compatibility. Time to say goodbye. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2013-05-09Fix video window height on MX/IX/SuperSavageTormod Volden
Some copy-pasto caused the width to be written into the height register. Thanks to Hans-Jürgen Mauser for pointing out a couple of more places this was wrong. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2013-05-09Fix building with TRACEON definedTormod Volden
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2013-05-09exa: Use exaGetPixmapFirstPixel() instead of devPrivate.ptrTormod Volden
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2013-05-09Really fix default accel arch when built with no XAATormod Volden
After ca9718a887ecbc59b76869af673791ab591b849b it would still default to XAA unless AccelMethod option was used. Make sure the default is EXA if there is no XAA support. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-12-22savage: fix default accel arch when built with no XAADave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-18savage: move compat-api.h down to proper place.Dave Airlie
This screws up when DRI isn't enabled. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-16savage: make build with no xaa server.Dave Airlie
This fixes savage build against the no XAA server. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-06savage: i2c drop xf86Screens usage.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-06savage: port to new compat APIDave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-24Refactor BIOS modes retrieval to call VBEGetVBEInfo only onceTormod Volden
Otherwise, calling it twice would trigger a VBE bug when using xserver 1.12. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-03-23Add savage_pciids.h to src/Makefile.am to fix distcheckAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2012-01-17Untangle XF86DRI from the driver-specific DRI definePeter Hutterer
XF86DRI is defined by xorg-server.h, so --disable-dri in the driver itself does exactly nothing other than not fill in the CFLAGS and thus stop the driver from compiling. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-01-03Merge almost identical code in SAVAGEInitVisualConfigsAndrew Turner
https://bugs.freedesktop.org/show_bug.cgi?id=9961 Signed-off-by: Andrew Turner <andrew@fubar.geek.nz> [Tormod: Rename table to SAVAGEVisuals] Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-01-03Avoid leading underscores in #include guardsTormod Volden
In a user header file, the macro name should not begin with `_' http://gcc.gnu.org/onlinedocs/cpp/Once_002dOnly-Headers.html Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2012-01-03Do not use the deprecated xf86PciInfo.h from xserverTormod Volden
Instead maintain our own list of supported PCI IDs. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-12-19Fix for new vgahw ABIAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19Fall back to shadowfb if XAA is unavailableAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19Don't include xf86Priv.hAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-09-23savage: Warn if broken drm maps are detectedTormod Volden
Linux kernel 2.6.30 - 2.6.39 had broken drm maps which would result in assorted problems. Leave a message in the log if it looks like the framebuffer map and the aperture map are mixed up. https://bugs.freedesktop.org/show_bug.cgi?id=32511 Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-09-23savage: Avoid unnecessary float calculation in video displayTormod Volden
There is no reason to do the division using floats as long as the result is an integer and there is no risk of intermediate overflow. This is in the code for "Old" chipsets. Integer division was already used in the parallel code for "New" chipsets. Also fixed up the whitespace in both blocks. Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2011-09-23savage: Fix Xv scaling on non-native resolutionsHans-Juergen Mauser
If I set the resolution to 800x600 for example (to be able to use the TV output in full screen mode), I only can see 800/1024 = 0,78 of the real video width, no matter if the video is displayed in a small player window or enlarged to full screen. On the right of the video display, the remaining width is filled with a black (or sometimes blue) bar. The problem was mainly that only the drawing starting point was modified by the scaling factor, but not the size-defining end of the drawing rectangle. https://bugs.launchpad.net/bugs/670790 Signed-off-by: Hans-Juergen Mauser <hjmauser@gmx.net> Reviewed-by: Tormod Volden <debian.tormod@gmail.com> Acked-by: Matt Turner <mattst88@gmail.com>
2011-04-21savage: Fix &/&& typo in "magical" register setupTormod Volden
Found with CFLAGS=-Wlogical-op Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-21savage: Make SAVAGESelectBuffer() private (static)Tormod Volden
Also clean out some unused prototypes from savage_driver.h Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-21savage: Factor out a SAVAGESetAgpMode and call it on resumeTormod Volden
This should fix resume with AGP. After all these years... https://bugzilla.kernel.org/show_bug.cgi?id=4607 Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-21savage: New SAVAGEDRIResume functionTormod Volden
Move DRI stuff from savage_driver.c to savage_dri.c Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-04-21savage: Fix logic in waitHSyncTormod Volden
Bit-masking the result of a boolean negation seems pointless, so I guess this is what was intended: Only look at bit 0 of the inStatus result. Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
2011-03-31Fix wrong frequency unit in trace outputTormod Volden
The mode pixel clock frequency is in kHz, not Hz. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-02-21Use proper casts on framebuffer addressesTormod Volden
Correction to df8059025cafadaeea7672842d31134ed8c9c5df. Casting addresses to int is a 32bitism. If we want to use this intermediate cast to silence compiler warnings, we should use uintptr_t instead to not introduce potential bit truncation. Thanks to Mark Kettenis for spotting this. Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2011-01-25savage: Fix initialization typo in SAVAGEDRIMoveBuffersTormod Volden
This was warned about when building with -O2, and seems to be a copy-and-paste glitch. savage_dri.c: In function ‘SAVAGEDRIMoveBuffers’: savage_dri.c:1445: warning: ‘pptNew2’ may be used uninitialized in this function
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’