Commit Graph

403 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
4eb5a3f8c9 sis_memcpy: fix const char* mismatch in SiS_ReadProc()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-23 17:46:13 +01:00
Enrico Weigelt, metux IT consult
303d394280 fix shadowed variables
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-23 17:46:13 +01:00
Enrico Weigelt, metux IT consult
39f8b84723 configure.ac: allow using higher C standards
Necessary for suppressing warnings on mixed declarations and code.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-23 17:46:13 +01:00
Enrico Weigelt, metux IT consult
f9a0717a24 sis6326_video: work around const issue XF86AttributeRec
This struct unfortunately is used for both the case where those name
fields are statically initialized as well as dynamically allocated.
(and the corresponding code already taking care of that).
Thus we have to explicitly ignore compiler warnings here.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-23 17:46:13 +01:00
Enrico Weigelt, metux IT consult
54407b0e25 fix various redeclarations of functions
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-23 17:46:13 +01:00
Enrico Weigelt, metux IT consult
c344e60c9a fix rounding on result of SiSCalcVRate()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-23 17:46:13 +01:00
Enrico Weigelt, metux IT consult
9bd48ad4cb fix pointer mismatch issues
FreeBSD compiler hates pointer arithmetics on void* pointers.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-23 17:46:13 +01:00
Enrico Weigelt, metux IT consult
74f27fa31c replace obsolete "pointer" typedef by plain void*
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-06 16:01:29 +01:00
Enrico Weigelt, metux IT consult
5f54da1e92 drop obsolete compat macros
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-02 16:59:44 +01:00
Enrico Weigelt, metux IT consult
422467fbfb .github: add NetBSD build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 18:20:30 +01:00
Enrico Weigelt, metux IT consult
8cde7b3272 .github: add freebsd and dragonfly build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-28 16:58:53 +01:00
Enrico Weigelt, metux IT consult
34ddf24346 .github: use new common driver build actions
Using the new driver build actions in X11Libre/actions-build-driver repo,
instead of having lots of duplicated pipeline and script in all the
individual driver repos.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-27 14:35:54 +01:00
Enrico Weigelt, metux IT consult
022552c290 configure.ac: increase minimum xserver version to 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-19 16:17:06 +01:00
Enrico Weigelt, metux IT consult
aa61f4383d release 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-sis-25.0.0
2025-12-18 19:19:17 +01:00
Enrico Weigelt, metux IT consult
1558d6e8c5 configure.ac: tiny formatting cleanup
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 17:38:54 +01:00
Enrico Weigelt, metux IT consult
717cbfa268 drop hacks for ancient pre-libpciaccess Xservers
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 14:55:49 +01:00
Enrico Weigelt, metux IT consult
68a56a6851 drop obsolete #ifdef XFree86LOADER
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:48:29 +01:00
Enrico Weigelt, metux IT consult
0d7ab20805 configure.ac: replace DRIVER_NAME symbol by actual name
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:29:26 +01:00
Enrico Weigelt, metux IT consult
c23a302b21 configure.ac: drop obsolete checks for libc functions
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 12:22:27 +01:00
Enrico Weigelt, metux IT consult
aaaa7dd7b4 drop support for ancient pre-7.1 xextproto
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 12:09:11 +01:00
Enrico Weigelt, metux IT consult
88d227d4a8 drop obsolete .gitlab-ci.yml
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:55:13 +01:00
Enrico Weigelt, metux IT consult
7ea49be742 drop obsolete #ifdef HAVE_CONFIG_H
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:09:03 +01:00
Alan Coopersmith
37743f0433 Strip trailing whitespace from source files
Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'`

`git diff -w` & `git diff -b` show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/42>
2025-12-16 10:35:42 +01:00
Enrico Weigelt, metux IT consult
ea3703e9fd configure.ac: fix package name and issue tracker URL
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-15 19:14:47 +01:00
Enrico Weigelt, metux IT consult
c6f0807a8c drop ifdef SISMERGED
It's always enabled, so no need to have the code cluttered with those #ifdef's.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-sis-0.12.0.3
2025-12-15 18:44:21 +01:00
Enrico Weigelt, metux IT consult
eb0bd15bba sis_driver: fix missing include of extinit.h
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-09 20:13:20 +01:00
b-aaz
3fa5ea45a5 configure: Automatically detect the default xorg-module-dir.
The module directory has changed to a per ABI folder in the xlibre-xserver.
Now the default value of `xorg-module-dir` will be detected from the `moduledir` variable in xorg-server.pc.

Signed-off-by: b-aaz <b-aazbsd.proton.me>
xlibre-xf86-video-sis-0.12.0.2
2025-07-29 18:41:47 +02:00
Enrico Weigelt, metux IT consult
eb4869770f .github: add CI pipeline
This pipeline builds the driver against the latest Xserver stable
release as well as current master.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 18:32:52 +02:00
callmetango
7b1fec3620 .github: Add issue forms
Add the following forms for issue creation:

* Bug report
* Feature request
* Code change
* Documentation update
* Organizational task

* add issue type selection page on "New Issue" call
* mention Github Discussions and the mailing list where appropriate

Part-of: X11Libre/misc#156
Signed-off-by: callmetango <callmetango@users.noreply.github.com>
2025-07-07 17:04:13 +02:00
Alan Coopersmith
861fc9235e Improve man page formatting
More closely follow common style as described on
https://man7.org/linux/man-pages/man7/man-pages.7.html
and fix warnings raised by `mandoc -T lint` and `groff -rCHECKSTYLE=10`

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/41>
xlibre-xf86-video-sis-0.12.0.1
2025-06-08 15:32:16 -07:00
Enrico Weigelt, metux IT consult
ee451146c0 drop obsolete XAA
Since recent commits require xserver-1.18.0 or later to build against,
there's no reason leaving behind big chunks of code that can only build
against the XAA support removed in xserver-1.13.0 (released in 2012).

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/26>
2025-04-13 10:12:51 -07:00
Alan Coopersmith
b144cedfe1 SiS_DDC2Delay: initialize variable before adding to it
Fixes issue flagged by Oracle Parfait 13.3 static analyser:
   Uninitialised variable [uninitialised-var]:
      Uninitialised variable 'j' may be used for addition with
      SiS_GetReg(SiS_Pr->SiS_P3c4, 5)
        at line 424 of src/init301.c in function 'SiS_DDC2Delay'.

Though in truth, it doesn't matter much since we never read the
values written to 'j'.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/39>
2024-10-12 15:00:33 -07:00
Semenov Herman
9709fe9741 micro-optimize: removed excess check exist pointer before free()
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/38>
2024-08-31 19:07:58 +00:00
Herman Semenov
0d0acc7d29 Added forgotten missing 'else if'
Signed-off-by: Semenov Herman <GermanAizek@yandex.ru>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/35>
2024-08-31 18:57:48 +00:00
Semenov Herman
597ef98b01 Fixed missing break in switch VDisplay (don't get mode 1280x720)
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/34>
2024-08-31 18:46:41 +00:00
Semenov German
42b78bc094 Fixed misprint in condition blocks with not used LCDheight (512x384, 400x300)
Signed-off-by: Семёнов Герман <GermanAizek@yandex.ru>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/33>
2024-08-31 18:35:17 +00:00
Semenov Herman
4f24960405 Fixed in SiS 315+ includes all chips (+XGI) set 'Blue' custom gamma RGB options
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/32>
2024-08-31 18:23:35 +00:00
Herman Semenov
cde13ef143 Fixed reset second XV display in DualHeadMode
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/31>
2024-08-31 18:12:57 +00:00
Семёнов Герман
9bbe2a772f Fixed invalid copy variable AllowHotkey in SiSCopyFromToEntity
Signed-off-by: Herman Semenov <GermanAizek@yandex.ru>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/30>
2024-08-26 21:37:56 +03:00
Enrico Weigelt, metux IT consult
fb3b448df7 fix FTBS on XSERVER_LIBPCIACCESS
Not all Xserver versions define that symbol with a numeric value
(1 or 0), some just might not define it at all when disabled.

Using #if instead of #ifdef (as most sites do) will lead to compile break:

    ../../src/sis_driver.c:4008:25: error: expected value in expression
    #if XSERVER_LIBPCIACCESS
                            ^

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/27>
2024-07-27 22:15:06 +00:00
Alan Coopersmith
a1f6d0148e README: Restore missing option name/type information
The LinuxDoc to text conversion lost some important details.
Restored from LinuxDoc version removed in commit 116d40678d.

Fixes: a8ebd72 ("Check in generated README files")
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/29>
2024-07-27 15:04:20 -07:00
Alan Coopersmith
e9ea79173c Move sizeof to second argument in calloc calls
Clears -Wcalloc-transposed-args warnings from gcc 14.1, such as:

sis_utility.c: In function ‘SiSCtrlExtInit’:
sis_utility.c:1983:35: warning: ‘calloc’ sizes specified with ‘sizeof’ in the
 earlier argument and not in the later argument [-Wcalloc-transposed-args]
 1983 |       if(!(myctrl = calloc(sizeof(xSiSCtrlScreenTable), 1)))
      |                                   ^~~~~~~~~~~~~~~~~~~
sis_utility.c:1983:35: 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-sis/-/merge_requests/28>
2024-07-14 13:54:57 -07:00
Enrico Weigelt, metux IT consult
49187eddb5 drop unused SISDEINT code path
This never had been enabled since it's incarnation back two decades ago.

Fixes: b41edc0ad1
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/25>
2024-06-01 15:18:20 -07:00
Enrico Weigelt, metux IT consult
ce0eea80a4 drop XV_SD_DEPRECATED code paths
This has been disabled since two decades, so probably not needed anymore.

Fixes: c8abdb74f9
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/24>
2024-06-01 15:08:01 -07:00
Enrico Weigelt, metux IT consult
c13574e56f drop unused OLD1280720P code path
This symbol was never enabled since it's incarnation two decades ago,
so there's probably no need for it at all.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/23>
2024-06-01 22:02:18 +00:00
Enrico Weigelt, metux IT consult
51ae88d118 drop always-enabled ifdefs
Always enabled ifdef's aren't needed. Dropping them and add the define's
comments to the corresponding places instead.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/22>
2024-06-01 14:40:06 -07:00
Enrico Weigelt, metux IT consult
dada643639 drop obsolete ifdef SIS315H
It's always enabled now, so no need for the extra ifdef's

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/21>
2024-06-01 14:27:24 -07:00
Enrico Weigelt, metux IT consult
0983d0ddcb drop obsolete ifdef SIS300
It's always enabled, so no need for the extra ifdef's.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/21>
2024-06-01 14:27:24 -07:00
Enrico Weigelt, metux IT consult
41d550ec05 drop obsolete #ifdef SIS_XORG_XF86
It's always enabled, so we don't need extra #ifdef's for that.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/21>
2024-06-01 14:27:24 -07:00
Enrico Weigelt, metux IT consult
05dfca3f7d drop support for ancient Linux 2.4 framebuffer device
This never seemed having been enabled, so most likely not needed at all.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/21>
2024-06-01 14:27:22 -07:00