summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
6 daysuse XNFcallocarray() instead of xnfcalloc macroHEADmasterEnrico Weigelt, metux IT consult2-6/+6
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-sis/-/merge_requests/7>
2024-03-10Use strdup() instead of malloc(strlen()+1); memcpy() pairsAlan Coopersmith1-6/+3
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-15Fix 5 of 5 -Wstringop-truncation warningsAlan Coopersmith2-1/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-15Fix warning: no previous prototype for ‘sis_get_device’ ↵Alan Coopersmith1-1/+1
[-Wmissing-prototypes] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-15Fix 40 of 42 -Wformat-nonliteral warningsAlan Coopersmith3-28/+28
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-15Fix 2 of 2 -Wformat warningsAlan Coopersmith2-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-12Fix 20 out of 23 -Wshadow warningsAlan Coopersmith5-91/+86
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-11Add X.Org's standard C warning flags to AM_CFLAGSAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-11configure: 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-10-06gitlab CI: ensure libtool is installed in build containerAlan Coopersmith1-3/+3
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08SISErrorLog: Add printf attributeAlan Coopersmith1-1/+1
sis_driver.c: In function ‘SISErrorLog’: sis_driver.c:435:5: warning: function ‘SISErrorLog’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] xf86VDrvMsgVerb(pScrn->scrnIndex, X_ERROR, 1, format, ap); ^~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08Resolve 174 out of 180 -Wdiscarded-qualifiers warningsAlan Coopersmith5-22/+22
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-28gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-28Fix spelling/wording issuesAlan Coopersmith14-29/+29
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-28Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-12-16Version bumped to 0.12.1Kevin Brace1-1/+1
Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16Clean up XGI Technology PCI Device IDsKevin Brace1-8/+9
Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16Clean up SiS PCI Device IDsKevin Brace1-27/+5
Define newer (?) SiS PCI Device IDs without the use of #ifndef. Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16Remove a reference to _XF86_PCIINFO_HKevin Brace1-4/+7
xf86PciInfo.h was removed long time ago by commit f6d49466ca538c65fa8c66352e421c2624e204f1. Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16Remove unnecessary SiS PCI Device IDsKevin Brace1-11/+0
These are SiS Device IDs for host to PCI bridges and a USB host. Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16Fix type mismatch compilation warnings when TWDEBUG macro is definedKevin Brace1-5/+5
Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16Use unsigned long when performing PCI read / writeKevin Brace2-9/+9
When thinking about 64-bit ISA environment, 32-bit PCI read / write should be performed as a unsigned long type. Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-03Version bumped to 0.12.0xf86-video-sis-0.12.0Kevin Brace1-1/+1
A maintenance release to support X.Org X Server 1.20. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-11-26Enable SISGAMMARAMP macro on X.Org X ServerKevin Brace1-1/+1
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-11-26Fix for xf86InterceptSigIll() discontinuation in X Server 1.20Kevin Brace1-1/+1
xf86InterceptSigIll() will still be used on X.Org X Server 1.19 or older. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-11-26Do not call xf86DisableRandR() for X Server 1.20Kevin Brace1-3/+3
This is needed for X Server 1.20 support. Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-07-26Version bumped to 0.11.0xf86-video-sis-0.11.0Kevin Brace1-1/+1
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-07-18Convert text format specifier type to unsigned shortKevin Brace1-1/+1
Signed-off-by: Kevin Brace <kevinbrace@gmx.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-sis/0001-cross.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2018-12-17Convert EXA support preprocessor macro to USE_EXAKevin Brace2-2/+2
All the other DDXs do it this way. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-17Eliminate constant related compilation warnings for native functionsKevin Brace2-2/+2
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-17Eliminate swap macro related unused variable compilation warningsKevin Brace2-0/+34
Unfortunately, commit c530ebb5d4ad0663838a0132e3610d713eaaa640 did not the check for ABI_VIDEODRV_VERSION where the swap macros are actually used in the code. Checking for ABI_VIDEODRV_VERSION suppresses unused variable compilation warnings for newer versions of the X Server. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-17Suppress logical operation and parenthesis related compilation warningsKevin Brace2-2/+2
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-17Eliminate set but not used variable compilation warningsKevin Brace2-16/+14
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-10Remove obsolete B16 & B32 tags in struct definitionsAlan Coopersmith1-14/+14
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-07-11Elimination of many "variable set but not used" compilation warningsKevin Brace3-13/+4
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-11Add conditional compilation directives to suppress compilation warningsKevin Brace1-0/+4
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-11Minor adjustment to the compilation orderKevin Brace1-3/+3
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2017-07-17xf86-video-sis: remove the GlxSetVisualConfigs stub and friendsEmil Velikov4-177/+3
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: Connor Behan <connor.behan@gmail.com> Cc: Thomas Klausner <wiz@NetBSD.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2017-02-16Remove reference to ->virtualFromAdam Jackson1-1/+1
The core will print this information as well anyway. Signed-off-by: Adam Jackson <ajax@redhat.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-sis 0.10.9xf86-video-sis-0.10.9Matt Turner1-1/+1
Signed-off-by: Matt Turner <mattst88@gmail.com>
2016-07-19Adapt Block/WakeupHandler signature for ABI 23Adam Jackson1-0/+5
Signed-off-by: Adam Jackson <ajax@redhat.com>