summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-08-02disable dri1 supportobsdMatthieu Herrb
2024-08-02Fix crash during resolution change. From debian bug #423485,Matthieu Herrb
by Tormod Volden pointed at by Ryan Freeman. Thanks. Has been in snapshots for a while without complaints.
2024-08-02BSD MakefileMatthieu Herrb
2024-07-14Move sizeof to second argument in calloc callsHEADmasterAlan Coopersmith
Clears -Wcalloc-transposed-args warnings from gcc 14.1, such as: savage_dri.c: In function ‘SAVAGEDRIScreenInit’: savage_dri.c:732:46: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 732 | pSAVAGEDRI = (SAVAGEDRIPtr)calloc( sizeof(SAVAGEDRIRec), 1 ); | ^~~~~~~~~~~~ savage_dri.c:732:46: note: earlier argument should specify number of elements, later size of each element Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/13>
2024-05-29drop dead codeEnrico Weigelt, metux IT consult
There's still a lot code thats either commented- of ifdef'ed out. Most likely not needed anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/12>
2024-05-29drop obsolete compat macrosEnrico Weigelt, metux IT consult
Since we're relying on xserver >= 1.18, these macros aren't needed anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/12>
2024-05-22drop support for ancient xserver versionsEnrico Weigelt, metux IT consult
We're relying on at least 1.18 now. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/10>
2024-05-22no need to check for xf86XVFillKeyHelperDrawable()Enrico Weigelt, metux IT consult
It's always present at least for >= 1.18 now. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/10>
2024-05-18Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)Alan Coopersmith
Already effectively required by use of XNFcallocarray() introduced in xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015. Allows dropping remnants of code for XAA and pre-pciaccess X servers Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-savage/-/merge_requests/11>
2024-05-08use XNFcallocarray() instead of xnfcalloc macroEnrico Weigelt, metux IT consult
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>
2024-05-08use XNFalloc() instead of xnfallocEnrico Weigelt, metux IT consult
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-17Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functionsAlan Coopersmith
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10Use C99 named initializers for XF86ModReqInfo in SavagePreInit()Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10Fix -Wdeclaration-after-statement warning in SavagePreInit()Alan Coopersmith
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 Coopersmith
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 Coopersmith
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOLAlan Coopersmith
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 Coopersmith
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 Coopersmith
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-04-09xf86-video-savage 2.4.0xf86-video-savage-2.4.0Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08Fix -Wformat warnings about integer size of argumentsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08constify some char * declarationsAlan Coopersmith
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-27gitlab CI: add a basic build testAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-27Fix spelling/wording issuesAlan Coopersmith
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-05-04configure.ac: fix cross-compilationFabrice Fontaine
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 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-12-07Update configure.ac bug URL for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-18Update README for gitlab migrationAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.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>
2017-01-26autogen: add default patch prefixMihail Konev
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov
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 Hutterer
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 Coopersmith
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 Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-17xf86-video-savage 2.3.9xf86-video-savage-2.3.9Matt Turner
Signed-off-by: Matt Turner <mattst88@gmail.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-08Bump to 2.3.8xf86-video-savage-2.3.8Julien Cristau
Signed-off-by: Julien Cristau <jcristau@debian.org>
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>