Commit Graph

330 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
0728d8d519 drop SIS_CP conditional'ed code pathes
This never had been enabled, since it's introduction in XFree86 4.3.99.16,
back two decades ago.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-05-15 14:03:29 +02:00
Enrico Weigelt, metux IT consult
bfe2dd6d5d use XNFcallocarray() instead of xnfcalloc macro
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-05-08 16:40:53 +02:00
Alan Coopersmith
cc2f4d685f Use strdup() instead of malloc(strlen()+1); memcpy() pairs
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-03-10 15:32:12 -07:00
Alan Coopersmith
4c5ce451f0 Quiet -Wredundant-decls from xorg/os.h fallbacks for new libc functions
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-17 10:43:12 -08:00
Alan Coopersmith
1174436d1a Fix 5 of 5 -Wstringop-truncation warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-15 11:17:47 -08:00
Alan Coopersmith
5072df5b9d Fix warning: no previous prototype for ‘sis_get_device’ [-Wmissing-prototypes]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-15 11:17:47 -08:00
Alan Coopersmith
2d64d83f24 Fix 40 of 42 -Wformat-nonliteral warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-15 11:17:47 -08:00
Alan Coopersmith
f5f1239385 Fix 2 of 2 -Wformat warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-15 11:17:38 -08:00
Alan Coopersmith
4edff7ddd4 Fix 20 out of 23 -Wshadow warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-12 17:34:06 -08:00
Alan Coopersmith
b691956206 Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-11 13:45:44 -08:00
Alan Coopersmith
02169f1c5f configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
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>
2024-01-11 13:43:45 -08:00
Alan Coopersmith
82efbb311e gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-06 16:08:16 -07:00
Alan Coopersmith
6b5e207863 SISErrorLog: Add printf attribute
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-08 18:30:12 -08:00
Alan Coopersmith
7aca631c94 Resolve 174 out of 180 -Wdiscarded-qualifiers warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08 18:24:49 -08:00
Alan Coopersmith
7a4afa9595 gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08 18:12:11 -08:00
Alan Coopersmith
aba561682d gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-28 16:31:55 -08:00
Alan Coopersmith
95129eb902 Fix spelling/wording issues
Found by using:
    codespell --builtin clear,rare,usage,informal,code,names

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-28 16:30:08 -08:00
Alan Coopersmith
87cf091427 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-28 16:22:14 -08:00
Kevin Brace
63b17bc846 Version bumped to 0.12.1
Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16 21:20:11 -06:00
Kevin Brace
563cf3c47a Clean up XGI Technology PCI Device IDs
Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16 20:50:24 -06:00
Kevin Brace
49b642e902 Clean up SiS PCI Device IDs
Define newer (?) SiS PCI Device IDs without the use of #ifndef.

Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16 20:49:56 -06:00
Kevin Brace
500ca55f6d Remove a reference to _XF86_PCIINFO_H
xf86PciInfo.h was removed long time ago by commit
f6d49466ca.

Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16 20:48:57 -06:00
Kevin Brace
6c1260b7bc Remove unnecessary SiS PCI Device IDs
These are SiS Device IDs for host to PCI bridges and a USB host.

Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16 20:48:42 -06:00
Kevin Brace
df7837d4ff Fix type mismatch compilation warnings when TWDEBUG macro is defined
Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-12-16 20:47:26 -06:00
Kevin Brace
1ac40451b8 Use unsigned long when performing PCI read / write
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-16 20:37:54 -06:00
Kevin Brace
866e109fc1 Version bumped to 0.12.0
A maintenance release to support X.Org X Server 1.20.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
xf86-video-sis-0.12.0
2019-12-03 10:09:49 -08:00
Kevin Brace
f0c0896a83 Enable SISGAMMARAMP macro on X.Org X Server
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-11-26 09:31:52 -08:00
Kevin Brace
eac25b01ca Fix for xf86InterceptSigIll() discontinuation in X Server 1.20
xf86InterceptSigIll() will still be used on X.Org X Server 1.19 or
older.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-11-26 09:31:37 -08:00
Kevin Brace
5d816e15d8 Do not call xf86DisableRandR() for X Server 1.20
This is needed for X Server 1.20 support.

Signed-off-by: Kevin Brace <kevinbrace@bracecomputerlab.com>
2019-11-26 09:31:22 -08:00
Kevin Brace
dfe2ce49b5 Version bumped to 0.11.0
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
xf86-video-sis-0.11.0
2019-07-26 15:44:13 -07:00
Kevin Brace
16fe430120 Convert text format specifier type to unsigned short
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-07-18 15:41:46 -07:00
Fabrice Fontaine
9e42918588 configure.ac: fix cross-compilation
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>
2019-05-04 19:24:04 +02:00
Kevin Brace
22d3c79f97 Convert EXA support preprocessor macro to USE_EXA
All the other DDXs do it this way.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-17 18:53:46 -06:00
Kevin Brace
0baf5baf7e Eliminate constant related compilation warnings for native functions
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-17 15:23:07 -06:00
Kevin Brace
0b2cce041e Eliminate swap macro related unused variable compilation warnings
Unfortunately, commit c530ebb5d4 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-17 15:08:45 -06:00
Kevin Brace
301cefae67 Suppress logical operation and parenthesis related compilation warnings
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-17 15:07:55 -06:00
Kevin Brace
940eed5b73 Eliminate set but not used variable compilation warnings
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-17 15:06:53 -06:00
Alan Coopersmith
7e75c8b1e9 Update configure.ac bug URL for gitlab migration
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-12-07 19:09:21 -08:00
Alan Coopersmith
3fcdc11644 Remove obsolete B16 & B32 tags in struct definitions
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-10 13:03:46 -08:00
Kevin Brace
413dfdfc45 Elimination of many "variable set but not used" compilation warnings
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-11 21:49:47 -07:00
Kevin Brace
5559abc347 Add conditional compilation directives to suppress compilation warnings
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-11 21:02:37 -07:00
Kevin Brace
31f3dd0df2 Minor adjustment to the compilation order
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-07-11 17:09:04 -07:00
Emil Velikov
a50b2b3412 xf86-video-sis: remove the GlxSetVisualConfigs stub and friends
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-07-17 13:57:44 +01:00
Adam Jackson
4b1356a2b7 Remove reference to ->virtualFrom
The core will print this information as well anyway.

Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-02-16 11:21:27 -05:00
Mihail Konev
d8b449d331 autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26 14:00:22 +10:00
Emil Velikov
e281d49ee4 autogen.sh: use quoted string variables
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-26 11:26:28 +10:00
Peter Hutterer
96f78918e8 autogen.sh: use exec instead of waiting for configure to finish
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-26 11:23:46 +10:00
Alan Coopersmith
576d819d53 autogen.sh: Honor NOCONFIGURE=1
See http://people.gnome.org/~walters/docs/build-api.txt

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26 11:16:37 +10:00
Alan Coopersmith
9c55c0de3e configure: Drop AM_MAINTAINER_MODE
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26 11:16:37 +10:00
Matt Turner
3b1aca6544 xf86-video-sis 0.10.9
Signed-off-by: Matt Turner <mattst88@gmail.com>
xf86-video-sis-0.10.9
2017-01-17 14:45:31 -08:00