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>
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>
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>
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>
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>
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>
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>
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>
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);
| ^
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>
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>
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>