339 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
c237282dff replace obsolete "pointer" typedef by plain void*
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-05 20:21:48 +01:00
Enrico Weigelt, metux IT consult
9c8216677e drop obsolete compat macros
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-02 16:34:12 +01:00
Enrico Weigelt, metux IT consult
95242491ed .github: add NetBSD build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 18:19:06 +01:00
Enrico Weigelt, metux IT consult
5a7ff3e5ee .github: add freebsd and dragonfly build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-28 16:58:17 +01:00
Enrico Weigelt, metux IT consult
8701585583 .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:37 +01:00
Enrico Weigelt, metux IT consult
0826b83753 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:16:36 +01:00
Enrico Weigelt, metux IT consult
bb204ed1d3 release 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-savage-25.0.0
2025-12-18 19:18:36 +01:00
Enrico Weigelt, metux IT consult
83ba04b98e configure.ac: tiny formatting cleanup
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 17:37:27 +01:00
Enrico Weigelt, metux IT consult
eb1683acc2 drop hacks for ancient pre-libpciaccess Xservers
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 15:59:22 +01:00
Enrico Weigelt, metux IT consult
99d0f306f8 drop obsolete #ifdef XFree86LOADER
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:47:37 +01:00
Enrico Weigelt, metux IT consult
1aca71392c configure.ac: replace DRIVER_NAME symbol by actual name
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:28:26 +01:00
Enrico Weigelt, metux IT consult
f6a825b83e configure.ac: drop obsolete checks for libc functions
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 12:22:06 +01:00
Enrico Weigelt, metux IT consult
daafaf5cbf drop support for ancient pre-7.1 xextproto
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 12:07:49 +01:00
Enrico Weigelt, metux IT consult
95762c6aa1 drop obsolete .gitlab-ci.yml
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:55:03 +01:00
Enrico Weigelt, metux IT consult
9d7a8b62bb drop obsolete #ifdef HAVE_CONFIG_H
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:05:22 +01:00
Enrico Weigelt, metux IT consult
dc6be115e1 release 2.4.2
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-savage-2.4.2
2025-12-16 15:28:16 +01:00
Enrico Weigelt, metux IT consult
2ad7d34846 README.md: fix URLs
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 13:22:04 +01:00
Alan Coopersmith
3577f95d14 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-savage/-/merge_requests/15>
2025-12-16 10:34:06 +01:00
Enrico Weigelt, metux IT consult
9c7b117c73 configure.ac: fix package name and issue tracker URL
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-15 19:13:36 +01:00
b-aaz
5620718a08 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-savage-2.4.1.2
2025-07-29 18:55:43 +02:00
Enrico Weigelt, metux IT consult
fe87fa8a2f .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 17:56:12 +02:00
callmetango
30391d9733 .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:26 +02:00
Alan Coopersmith
678a7687ac 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-savage/-/merge_requests/14>
xlibre-xf86-video-savage-2.4.1.1
2025-06-08 13:43:36 -07:00
Alan Coopersmith
09f6c06f0a Move sizeof to second argument in calloc calls
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-07-14 13:47:47 -07:00
Enrico Weigelt, metux IT consult
b5bf275d66 drop dead code
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-29 17:22:41 +02:00
Enrico Weigelt, metux IT consult
58de94c6d4 drop obsolete compat macros
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-29 16:42:36 +02:00
Enrico Weigelt, metux IT consult
54dcbfeb2b drop support for ancient xserver versions
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-22 18:48:41 -07:00
Enrico Weigelt, metux IT consult
d65e042084 no need to check for xf86XVFillKeyHelperDrawable()
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-22 18:48:40 -07:00
Alan Coopersmith
cb476dbdef Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)
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-18 15:21:46 -07:00
Enrico Weigelt, metux IT consult
b47b0a666b 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-savage/-/merge_requests/9>
2024-05-08 16:36:28 +02:00
Enrico Weigelt, metux IT consult
b980bd21d4 use XNFalloc() instead of xnfalloc
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-05-08 13:12:43 +02:00
Alan Coopersmith
129baf3518 xf86-video-savage 2.4.1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-savage-2.4.1
2024-03-24 13:03:24 -07:00
Alan Coopersmith
ac67fa9515 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 09:36:49 -08:00
Alan Coopersmith
9a57874a00 Fix 5 -Wshadow warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10 18:13:30 -08:00
Alan Coopersmith
2548cd71e8 Use C99 named initializers for XF86ModReqInfo in SavagePreInit()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10 18:13:30 -08:00
Alan Coopersmith
e1e06b461d Fix -Wdeclaration-after-statement warning in SavagePreInit()
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-10 18:13:30 -08:00
Alan Coopersmith
4ceb83fad8 Fix warning: no previous prototype for ‘SavageGetCopyROP’
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-10 18:13:30 -08:00
Alan Coopersmith
ab02c63fb4 Revert "exa: Use exaGetPixmapFirstPixel() instead of devPrivate.ptr"
This reverts commit ac460e6836.

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-10 18:13:30 -08:00
Alan Coopersmith
f7d999c336 Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-10 18:13:30 -08:00
Alan Coopersmith
17e977672f 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-10 18:13:25 -08:00
Alan Coopersmith
ce15de3a23 Don't build unused code for HorizScaleFactor != 1
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-07 18:39:21 -08:00
Alan Coopersmith
de5aa430a2 Don't call xf86DisableRandR in ABI_VIDEODRV_VERSION 24 & later
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-12-07 18:36:00 -08:00
Alan Coopersmith
64c525938c gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-06 16:00:49 -07:00
Alan Coopersmith
bd0a761059 xf86-video-savage 2.4.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-savage-2.4.0
2023-04-09 13:00:26 -07:00
Alan Coopersmith
04137c3a61 Fix -Wformat warnings about integer size of arguments
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08 17:40:38 -08:00
Alan Coopersmith
e9ed4a8755 constify some char * declarations
Clears 8 of 15 -Wdiscarded-qualifiers warnings from gcc

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08 17:29:31 -08:00
Alan Coopersmith
7133cd19ec gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-08 17:24:58 -08:00
Alan Coopersmith
5c25920ed2 gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-27 18:11:44 -08:00
Alan Coopersmith
d9e6a6e2e0 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-27 17:48:06 -08:00
Alan Coopersmith
e966c430b1 Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-27 17:42:49 -08:00