201 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
932edf7158 gitlab CI: add pipeline for building against various Xserver releases
Adding a gitlab pipeline building this driver against Xserver major releases
since 1.18, including current master branch, on Debian as well as FreeBSD.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-09-16 15:26:44 +02:00
Enrico Weigelt, metux IT consult
3d943e70dd gitlab CI: common scripts for driver builds
Adding a bunch of common scripts for building xorg drivers on different
platforms (for now Debian and FreeBSD) against different server versions.

Also designed to be executed locally (eg. within a VM), so one doesn't
always have to employ f.d.o gitlab.

For now, these are synced manually across various driver repos, until we've
found a viable solution for a central place.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2024-09-16 15:26:44 +02:00
Enrico Weigelt, metux IT consult
fddaa2084b drop compat with ancient xservers
Relying on >= 1.18 now, so no need to keep compat with older ones.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident/-/merge_requests/10>
xlibre-xf86-video-trident-1.4.0.1
2024-06-10 13:44:19 +02:00
Alan Coopersmith
4e392222bb Remove XAA support
Mostly done via unifdef -UHAVE_XAA_H, followed by minor manual editing

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: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident/-/merge_requests/9>
2024-05-19 14:14:29 -07:00
Alan Coopersmith
a5f2dea496 Drop ifdefs for ABI_VIDEODRV_VERSION < 12
ABI_VIDEODRV_VERSION 12 shipped in Xserver 1.10, less than our new minimum

Mostly removes PC98 support

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident/-/merge_requests/9>
2024-05-19 13:49:10 -07:00
Enrico Weigelt, metux IT consult
7edf093535 drop ancient ISA support
Xserver has dropped all ISA support over 15 years ago. Since our minimum
support version now is 1.8, no need to keep the disfunctional ISA support.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident/-/merge_requests/8>
2024-05-15 17:21:41 +02:00
Enrico Weigelt, metux IT consult
c1e23391b1 bump minimal xorg version to 1.18
1.18 was released a decade ago, so it seems reasonable stop supporting
older ones.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident/-/merge_requests/8>
2024-05-14 16:16:23 +02:00
Enrico Weigelt, metux IT consult
9af42a03df use XNFrealloc() instead of xnfrealloc
xnfrealloc is just an alias for XNFrealloc() 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-trident/-/merge_requests/7>
2024-05-10 11:40:54 +02:00
Enrico Weigelt, metux IT consult
aea97a2758 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-trident/-/merge_requests/7>
2024-05-08 17:01:19 +02:00
Enrico Weigelt, metux IT consult
1b03d9e1d1 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-trident/-/merge_requests/7>
2024-05-08 13:18:04 +02:00
Alan Coopersmith
a1d33167b9 Quiet -Wmisleading-indentation warning in trident_dac.c
trident_dac.c: In function ‘Tridentddc1Read’:
trident_dac.c:1238:5: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
 1238 |     while (!(INB(vgaIOBase + 0xA) & 0x08));
      |     ^~~~~
In file included from trident_dac.c:36:
trident_regs.h:303:1: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
  303 | { \
      | ^
trident_dac.c:1241:5: note: in expansion of macro ‘OUTB’
 1241 |     OUTB(vgaIOBase + 4, I2C);
      |     ^~~~

Compiled code does not change due to this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-17 11:07:05 -08:00
Alan Coopersmith
19356956a1 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 11:07:05 -08:00
Alan Coopersmith
957218632f Add X.Org's standard C warning flags to AM_CFLAGS
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2024-01-15 15:01:12 -08:00
Alan Coopersmith
dc837b2075 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-15 14:58:29 -08:00
Alan Coopersmith
774fef5a26 gitlab CI: ensure libtool is installed in build container
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-10-07 08:55:17 -07:00
Alan Coopersmith
ec567fe86a xf86-video-trident 1.4.0
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
xf86-video-trident-1.4.0
2023-02-13 14:59:29 -08:00
Alan Coopersmith
e993eebd1f Fix 96 out of 102 -Wdiscarded-qualifiers warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-09 11:34:53 -08:00
Alan Coopersmith
bf78cb5118 blade_exa: Fix -Wimplicit-fallthrough warning
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-09 11:32:24 -08:00
Alan Coopersmith
819ce9b5df gitlab CI: stop requiring Signed-off-by in commits
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-09 11:27:01 -08:00
Alan Coopersmith
c2f3f85426 Update trident_pci_rename.h to pci_rename.h in src/Makefile.am
Makefile was missed when header was renamed.  Fixes "make distcheck".

Fixes: cc33df89bc

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29 15:25:10 -08:00
Alan Coopersmith
077335e9b1 gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29 15:18:10 -08:00
Alan Coopersmith
12dc7dac8d 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-29 15:17:16 -08:00
Alan Coopersmith
591dae19fb Build xz tarballs instead of bzip2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-29 15:15:43 -08:00
Fabrice Fontaine
07a5c4732f Remove ramdac
ramdac drivers have been removed from xserver since version 21.0.99.1
and
f0385fb420
resulting in the following build failure:

In file included from trident_bank.c:37:
trident.h:41:10: fatal error: xf86RamDac.h: No such file or directory
   41 | #include "xf86RamDac.h"
      |          ^~~~~~~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/c81ac8075af257e8626d9d097270be7a7b4a1496

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2021-12-07 22:36:18 +01:00
Kevin Brace
cc33df89bc Rename trident_pci_rename.h to pci_rename.h
PCI rename header file appears to be generic, so trident_ prefix
should be dropped.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-10 20:02:11 -07:00
Kevin Brace
b0b1c79aa9 Rename tridentpcirename.h to trident_pci_rename.h
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-10 19:44:54 -07:00
Kevin Brace
2da7345960 A minor adjustment to src/Makefile.am
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-10 19:42:54 -07:00
Kevin Brace
5f110dc4c1 Move IsClearTV function location inside trident_pll.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-10 19:39:45 -07:00
Kevin Brace
b34e8641c6 Add braces to two for loops that lack them
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-10 19:30:56 -07:00
Kevin Brace
eb2d933f74 Rename tridenthelper.c to trident_pll.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-10 19:30:03 -07:00
Kevin Brace
df9a227478 Fix indentation of tridenthelper.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-10 19:13:42 -07:00
Kevin Brace
dff7175a36 Tab to spaces conversion for tridenthelper.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-10 19:09:01 -07:00
Kevin Brace
8ea9a45760 Add braces to for loops inside tridenthelper.c
Newer versions of gcc give warnings, so this fix suppresses the
warnings.

Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-10 19:08:16 -07:00
Kevin Brace
fb546df6b2 Rename xp4_accel_exa.c to xp4_exa.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 14:49:16 -08:00
Kevin Brace
ddb8975c0c Fix indentation of xp4_accel_exa.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 14:46:48 -08:00
Kevin Brace
e9871ae05f Tab to spaces conversion for xp4_accel_exa.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 14:44:35 -08:00
Kevin Brace
1ec32020c9 Rename xp4_accel.c to xp4_xaa.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 14:33:02 -08:00
Kevin Brace
6f21b76940 Suppress unused function compilation warnings for XP4 XAA functions
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 14:30:17 -08:00
Kevin Brace
286b5ad5e3 Fix indentation of xp4_accel.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 14:29:08 -08:00
Kevin Brace
ab9bc7fcfc Tab to spaces conversion for xp4_accel.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 14:21:31 -08:00
Kevin Brace
be4a1b3065 Rename xp_accel.c to xp_xaa.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 13:40:05 -08:00
Kevin Brace
de17744921 Fix indentation of xp_accel.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 13:35:37 -08:00
Kevin Brace
867c9f8620 Tab to spaces conversion for xp_accel.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 13:34:46 -08:00
Kevin Brace
6793836ebf Fix indentation of src/Makefile.am
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-05 13:24:35 -08:00
Kevin Brace
f08258914d Rename blade_accel_exa.c to blade_exa.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-04 21:56:37 -08:00
Kevin Brace
b51b7aeb2a Fix indentation of blade_accel_exa.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-04 21:55:55 -08:00
Kevin Brace
4a4c34d9cf Tab to spaces conversion for blade_accel_exa.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-04 21:55:03 -08:00
Kevin Brace
9f3aa06c20 Rename blade_accel.c to blade_xaa.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-04 21:51:06 -08:00
Kevin Brace
2783af1f97 Fix indentation for blade_accel.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-04 21:50:42 -08:00
Kevin Brace
62c95fa3d1 Tab to spaces conversion for blade_accel.c
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-03-04 21:50:24 -08:00