Commit Graph

386 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
1089e0710b replace obsolete "pointer" typedef by plain void*
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-07 19:17:46 +01:00
Enrico Weigelt, metux IT consult
da10d3f803 drop obsolete compat macros
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-02 16:15:14 +01:00
Enrico Weigelt, metux IT consult
43578845d8 always enable DRI support
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 17:45:08 +01:00
Enrico Weigelt, metux IT consult
3835502140 drop defining _XF86DRI_SERVER_
it's not used anywhere for long time now.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 17:45:08 +01:00
Enrico Weigelt, metux IT consult
3400de3e46 drop obsolete symbols XGINEWDRI and XGINEWDRI2
Not used anywhere

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 17:45:08 +01:00
Enrico Weigelt, metux IT consult
89cf8f70b0 configure.ac: drop obsolete AM_MAINTAINER_MODE
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-30 16:25:33 +01:00
Enrico Weigelt, metux IT consult
02e5f660d5 .github: add NetBSD build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 19:14:41 +01:00
Enrico Weigelt, metux IT consult
7e17e47fa2 .github: add freebsd and dragonfly build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 10:27:33 +01:00
Enrico Weigelt, metux IT consult
76d875a899 .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:59:53 +01:00
Enrico Weigelt, metux IT consult
0fe9e4f458 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:22:38 +01:00
Enrico Weigelt, metux IT consult
eb89c782e1 release 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-xgi-25.0.0
2025-12-18 19:26:34 +01:00
Enrico Weigelt, metux IT consult
9d5b55b595 configure.ac: tiny formatting cleanup
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 17:46:45 +01:00
Enrico Weigelt, metux IT consult
7855246612 configure.ac: drop unused RELEASE_DATE symbol
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 16:54:56 +01:00
Enrico Weigelt, metux IT consult
4a2150bf59 drop hacks for ancient pre-libpciaccess Xservers
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 14:35:36 +01:00
Enrico Weigelt, metux IT consult
abf49484a0 drop obsolete #ifdef XFree86LOADER
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:52:37 +01:00
Enrico Weigelt, metux IT consult
f304644536 configure.ac: replace DRIVER_NAME symbol by actual name
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:37:31 +01:00
Enrico Weigelt, metux IT consult
55620c7c6f drop support for ancient pre-7.1 xextproto
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 12:15:11 +01:00
Enrico Weigelt, metux IT consult
fc9a138680 drop obsolete .gitlab-ci.yml
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:56:23 +01:00
Enrico Weigelt, metux IT consult
dcf78474a5 drop obsolete #ifdef HAVE_CONFIG_H
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:29:28 +01:00
Enrico Weigelt, metux IT consult
f808b61589 README.md: fix URLs
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 12:20:57 +01:00
Alan Coopersmith
e9ed1c244e 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-xgi/-/merge_requests/12>
2025-12-16 10:54:08 +01:00
Enrico Weigelt, metux IT consult
87bbfa010a xgi_driver: fix missing include of extinit.h
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-xgi-1.6.1.3
2025-12-15 19:47:10 +01:00
Enrico Weigelt, metux IT consult
05991a445b configure.ac: fix package name and issue tracker URL
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-15 19:32:40 +01:00
b-aaz
ef37fa448b 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-xgi-1.6.1.2
2025-07-29 18:43:34 +02:00
Enrico Weigelt, metux IT consult
1c01a12ea0 .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:34:11 +02:00
callmetango
3267c1eaf4 .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 16:42:17 +02:00
Enrico Weigelt, metux IT consult
e73ff14a7f fix FTBS on missing typedef ulong
> ../../src/xgi_accel.c: In function 'XGIPrepareSolid':
> ../../src/xgi_accel.h:382:27: error: 'ulong' undeclared (first use in this function); did you mean 'ULong'?
>   382 |     pXGI->CommandReg |= ((ulong)(bpp))&(GENMASK(17:16)) ;
>       |                           ^~~~~

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/8>
xlibre-xf86-video-xgi-1.6.1.1
2024-07-27 22:46:16 +00:00
Enrico Weigelt, metux IT consult
75ea1ea883 fix FTBS on missing return value
> ../../src/xgi_accel.c:1055:2: error: non-void function 'XGIUploadToScratch' should return a value [-Wreturn-type]
         DisableDrawingFunctionDynamically(TRUE);
>         ^
> ../../src/xgi_accel.c:185:4: note: expanded from macro 'DisableDrawingFunctionDynamically'
>                         return; \
>                         ^

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/8>
2024-07-27 22:46:16 +00:00
Alan Coopersmith
f697a7e0df Revert "fix too small array in XGI_CRT1TableStruct"
This reverts commit 6e5981dafa.
It failed to take zero-indexing into account, and only raised the size
to 16, while using [16] means the size must be at least 17.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/10>
2024-07-27 13:57:25 -07:00
Enrico Weigelt, metux IT consult
6e5981dafa fix too small array in XGI_CRT1TableStruct
> ../../src/init.c:553:13: warning: array index 16 is past the end of the array (which contains 15 elements) [-Warray-bounds]
>      temp = XGI_Pr->XGINEWUB_CRT1Table[index].CR[16] & 0xE0;
>             ^                                    ~~
> ../../src/vb_struct.h:377:3: note: array 'CR' declared here
>   UCHAR CR[15];
>   ^
> ../../src/init.c:556:15: warning: array index 16 is past the end of the array (which contains 15 elements) [-Warray-bounds]
>      temp = ((XGI_Pr->XGINEWUB_CRT1Table[index].CR[16]) & 0x01) << 5;
>               ^                                    ~~
> ../../src/vb_struct.h:377:3: note: array 'CR' declared here
>   UCHAR CR[15];
>   ^

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/9>
2024-06-06 13:51:21 +02:00
Enrico Weigelt, metux IT consult
6f881371d3 drop dead code
We've got lots of dead (commented-out of ifdef'ed-out) code that most likely
nobody needs anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/7>
2024-05-27 16:12:15 +02:00
Enrico Weigelt, metux IT consult
58bd89aebd drop disabled ENABLE_YPBPR code path
It seems to be disabled for very long time, so probably no need for it anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 17:16:45 +02:00
Enrico Weigelt, metux IT consult
2628472522 drop unused XGI_ARGB_CURSOR code path
It's always disabled, so probably no need for it anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 17:14:09 +02:00
Enrico Weigelt, metux IT consult
0ed3071eff drop undef'ing non-existant XGI315DRI
It doesn't have been existing ever.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 17:13:51 +02:00
Enrico Weigelt, metux IT consult
65e40997a5 fix weird hack on including xgi.h
xgi.h just lacked including Xdefs.h, that's it all.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 17:12:09 +02:00
Enrico Weigelt, metux IT consult
8bef5f0997 drop unnecessary type guards
These aren't defined anywhere else, so no need for extra guards.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:59:02 +02:00
Enrico Weigelt, metux IT consult
0e20da3bea drop always-enabled ifdef XGI_HAVE_COMPOSITE
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-xgi/-/merge_requests/6>
2024-05-24 16:53:42 +02:00
Enrico Weigelt, metux IT consult
dc43d5995f drop never used NEW_DGAOPENFRAMEBUFFER code path
This symbol is never defined, so we can drop the code pathes behind it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:52:05 +02:00
Enrico Weigelt, metux IT consult
ccf7b7d3a9 drop ifdef XGIVRAMQ
It's always enabled, so no need for the extra #ifdef.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:50:06 +02:00
Enrico Weigelt, metux IT consult
4d91e8358d drop obsolete USING_BIOS_SETMODE
It's not enabled at all, so probably not needed anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:48:58 +02:00
Enrico Weigelt, metux IT consult
d31abc8180 drop obsolete ifdef XGIXINERAMA
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-xgi/-/merge_requests/6>
2024-05-24 16:47:27 +02:00
Enrico Weigelt, metux IT consult
9e133647b6 drop obsolete ifdef on LINUX_XF86
It's always enabled, so no need for the ifdefs and the disabled code pathes.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:42:41 +02:00
Enrico Weigelt, metux IT consult
e1dc37b94a drop ancient raw Linux kernel FB support
This has been disabled for aeons and probably doesn't work at all.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:30:23 +02:00
Enrico Weigelt, metux IT consult
0b9742fe3c drop compat for ancient Linux 2.5.x kernel
This is really ancient and probably doesn't work anymore at all.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:26:15 +02:00
Enrico Weigelt, metux IT consult
bb077f384b drop unused WIN2000 code path
hw/xfree86, thus this driver, doesn't run on Windows, so no need for that.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:23:45 +02:00
Enrico Weigelt, metux IT consult
732fee2815 drop ifdef XGIGAMMA
It's always enabled, so no need for the extra #ifdef.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:19:35 +02:00
Enrico Weigelt, metux IT consult
74cf2305a0 drop ifdef's on XGIMERGED
It's always enabled, so no need for the #ifdef's anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:18:17 +02:00
Enrico Weigelt, metux IT consult
e3c0298c54 drop ifdef's on XGIDUALHEAD
It's always enabled, so no need for the #ifdef's anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:18:17 +02:00
Enrico Weigelt, metux IT consult
5cbd1a822c drop UNLOCK_ALWAYS symbol
It's always enabled, so no need for the #ifdef's.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-xgi/-/merge_requests/6>
2024-05-24 16:18:17 +02:00
Enrico Weigelt, metux IT consult
05eac74cbd drop unused XGI_CP code pathes
These seem never to have been enabled, so probably 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-xgi/-/merge_requests/6>
2024-05-24 16:18:17 +02:00