summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
7 daysuse XNFcallocarray() instead of xnfcalloc macroHEADmasterEnrico Weigelt, metux IT consult1-3/+3
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve any practical purpose, so it can go away once all drivers stopped using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/9>
7 daysuse XNFalloc() instead of xnfallocEnrico Weigelt, metux IT consult1-1/+1
xnfalloc is just an alias for XNFalloc() that doesn't seem to serve any practical purpose, so it can go away once all drivers stopped using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/9>
2024-03-24xf86-video-savage 2.4.1xf86-video-savage-2.4.1Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-17Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functionsAlan Coopersmith1-0/+5
The Xorg headers provide their own versions of strlcat, strlcpy, and timingsafe_memcmp for platforms that don't have them in libc yet, but rely on configure to set HAVE_* defines to determine if they should be defined in the headers. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10Fix 5 -Wshadow warningsAlan Coopersmith1-7/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10Use C99 named initializers for XF86ModReqInfo in SavagePreInit()Alan Coopersmith1-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10Fix -Wdeclaration-after-statement warning in SavagePreInit()Alan Coopersmith1-4/+4
savage_driver.c: In function ‘SavagePreInit’: savage_driver.c:2168:13: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 2168 | XF86ModReqInfo req; | ^~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10Fix warning: no previous prototype for ‘SavageGetCopyROP’Alan Coopersmith3-6/+1
savage_accel.c:1541:5: warning: no previous prototype for ‘SavageGetCopyROP’ [-Wmissing-prototypes] 1541 | int SavageGetCopyROP(int rop) { | ^~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10Revert "exa: Use exaGetPixmapFirstPixel() instead of devPrivate.ptr"Alan Coopersmith1-1/+1
This reverts commit ac460e6836bdd2cd16c9d29743376c16fdc6924e. Fixes gcc error: savage_exa.c: In function ‘SavageDownloadFromScreen’: savage_exa.c:570:26: warning: cast from function call of type ‘CARD32’ {aka ‘unsigned int’} to non-matching type ‘unsigned char *’ [-Wbad-function-cast] 570 | unsigned char *src = (unsigned char *) exaGetPixmapFirstPixel(pSrc); | ^
2024-01-10Add X.Org's standard C warning flags to AM_CFLAGSAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith1-2/+1
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008, so it's time to rely on it. Clears autoconf warnings: configure.ac:44: warning: The macro 'AC_PROG_LIBTOOL' is obsolete. configure.ac:44: You should run autoupdate. aclocal.m4:3515: AC_PROG_LIBTOOL is expanded from... configure.ac:44: the top level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-12-07Don't build unused code for HorizScaleFactor != 1Alan Coopersmith1-0/+4
Clears gcc 13.2 warning: savage_driver.c: In function ‘SavageModeInit’: savage_driver.c:3731:13: warning: this condition has identical branches [-Wduplicated-branches] 3731 | else if (pScrn->bitsPerPixel == 16) | ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-12-07Don't call xf86DisableRandR in ABI_VIDEODRV_VERSION 24 & laterAlan Coopersmith1-0/+12
The API was removed by Xserver commit dd00e5466a0e4ea313d1860824da4123692827ed in xorg-server-1.20.0 and later. Found by gcc -Werror=implicit: savage_driver.c: In function ‘SavagePreInit’: savage_driver.c:1237:13: error: implicit declaration of function ‘xf86DisableRandR’; did you mean ‘xf86DisableIO’? [-Werror=implicit-function-declaration] 1237 | xf86DisableRandR(); | ^~~~~~~~~~~~~~~~ | xf86DisableIO Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-06gitlab CI: ensure libtool is installed in build containerAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-04-09xf86-video-savage 2.4.0xf86-video-savage-2.4.0Alan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08Fix -Wformat warnings about integer size of argumentsAlan Coopersmith2-4/+4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08constify some char * declarationsAlan Coopersmith1-4/+6
Clears 8 of 15 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08gitlab CI: stop requiring Signed-off-by in commitsAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-27gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-27Fix spelling/wording issuesAlan Coopersmith11-27/+27
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-27Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-05-04configure.ac: fix cross-compilationFabrice Fontaine1-6/+12
AC_CHECK_FILE can't be used when cross-compiling [Retrieved from: https://git.buildroot.net/buildroot/tree/package/x11r7/xdriver_xf86-video-savage/0001-cross-compile.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2019-02-01Changing result parameter type for ScreenWakeupHandlerProcPtrKevin Brace1-1/+1
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 Brace3-18/+7
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-13Eliminate set but not used variable compilation warningsKevin Brace2-7/+16
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18Update README for gitlab migrationAlan Coopersmith3-20/+20
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-06-26Add check for max[HV]Value to ValidMode hookStefan Dirsch1-2/+8
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 Velikov3-171/+1
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>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2017-01-26autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-17xf86-video-savage 2.3.9xf86-video-savage-2.3.9Matt Turner1-1/+1
Signed-off-by: Matt Turner <mattst88@gmail.com>
2016-07-19Adapt Block/WakeupHandler signature for ABI 23Adam Jackson1-0/+8
Signed-off-by: Adam Jackson <ajax@redhat.com>
2016-04-27Disable tiling on SuperSavage by defaultStefan Dirsch1-1/+5
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-08Bump to 2.3.8xf86-video-savage-2.3.8Julien Cristau1-1/+1
Signed-off-by: Julien Cristau <jcristau@debian.org>
2015-05-08Fix compiler warnings with recent X serversJulien Cristau1-1/+1
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 Jackson1-3/+0
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Use own thunk function instead of vgaHW*WeakAdam Jackson1-1/+8
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 White1-0/+1
Signed-off-by: Jeremy White <jwhite@codeweavers.com> Reviewed-by: Robert Morell <rmorell@nvidia.com>
2013-09-24xf86-video-savage: bump to version 2.3.7xf86-video-savage-2.3.7Tormod Volden1-1/+1
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2013-09-19Drop miInitializeBackingStore() callAlexander Grothe1-1/+0
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 Volden1-4/+4
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 Volden1-1/+1
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2013-05-09exa: Use exaGetPixmapFirstPixel() instead of devPrivate.ptrTormod Volden1-1/+1
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
2013-05-09Really fix default accel arch when built with no XAATormod Volden1-3/+3
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 Airlie1-0/+4
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-18savage: move compat-api.h down to proper place.Dave Airlie1-2/+2
This screws up when DRI isn't enabled. Signed-off-by: Dave Airlie <airlied@redhat.com>