Commit Graph

656 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult
04451bdeec configure.ac: make Xserver's builtin extensions mandatory
Several extensions like randr and render are always built-in in the
Xserver, no need for having them optional here in any way.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 20:21:11 +01:00
Enrico Weigelt, metux IT consult
a5dbad6979 meson.build: drop unused HAVE_PRESENT_H define
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 16:11:26 +01:00
Enrico Weigelt, metux IT consult
42f9e2d636 drop obsolete compat-api.h
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 13:07:04 +01:00
Enrico Weigelt, metux IT consult
dd64e3c0ff replace BLOCKHANDLER_ARGS_DECL and BLOCKHANDLER_ARGS
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 13:06:02 +01:00
Enrico Weigelt, metux IT consult
44da1288be configure.ac: tiny formatting cleanup
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 11:04:31 +01:00
Enrico Weigelt, metux IT consult
05eb5b3a71 meson.build: drop obsolete check for byteswap.h
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 11:03:07 +01:00
Enrico Weigelt, metux IT consult
30da573b81 configure.ac: drop obsolete check for byteswap.h
The Xserver is providing it's own functions for this.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 11:02:02 +01:00
Enrico Weigelt, metux IT consult
fd1340ab0e configure.ac: drop obsolete AC_SYS_LARGEFILE
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-31 11:01:07 +01:00
Enrico Weigelt, metux IT consult
20b836bb55 .github: add NetBSD build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 19:42:55 +01:00
Enrico Weigelt, metux IT consult
e88756767f configure.ac: drop broken inclusion of <sys/endian.h>
It's breaking with Xservers SDK's functions and not needed at all,
since the Xserver SDK already providing platform independent
functions for this. (actually we only need bswap_32() anyways)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 19:42:55 +01:00
Enrico Weigelt, metux IT consult
2aee7058c0 amdgpu_probe: fix build w/o XSERVER_PLATFORM_BUS
On NetBSD (and possibly others) we don't have XSERVER_PLATFORM_BUS
enabled, due lack of udev & kms.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-29 19:42:55 +01:00
Enrico Weigelt, metux IT consult
b9cfbae613 .github: add freebsd and dragonfly build
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-28 14:14:04 +01:00
Enrico Weigelt, metux IT consult
3a5c320107 .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-23 11:13:29 +01:00
Enrico Weigelt, metux IT consult
7d1cfb1d2e 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:02:49 +01:00
Enrico Weigelt, metux IT consult
b91d99f508 release 25.0.1
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-amdgpu-25.0.1
2025-12-18 18:41:53 +01:00
Enrico Weigelt, metux IT consult
0c5ac184c1 configure.ac: replace DRIVER_NAME symbol by actual name
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 13:05:23 +01:00
Enrico Weigelt, metux IT consult
c511d2ca21 meson.build: drop setting HAVE_XEXTPROTO_71
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:58:40 +01:00
Enrico Weigelt, metux IT consult
e6ed0c8849 drop obsolete .gitlab-ci.yml
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:51:31 +01:00
Enrico Weigelt, metux IT consult
d485f692ce drop obsolete .editorconfig
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:51:18 +01:00
Enrico Weigelt, metux IT consult
1e2f118311 drop obsolete .dir-locals.el
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-18 11:51:05 +01:00
Enrico Weigelt, metux IT consult
5824c26679 meson.build: drop obsolete HAVE_CONFIG_H
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-17 19:21:32 +01:00
Enrico Weigelt, metux IT consult
78991d8c03 meson_options.txt: replace Xorg by XLibre
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 13:51:09 +01:00
Enrico Weigelt, metux IT consult
f4979f4c20 README.md: fix URLs
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-16 11:10:52 +01:00
Enrico Weigelt, metux IT consult
384ca9d536 release 25.0.0
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-amdgpu-25.0.0
2025-12-15 14:45:53 +01:00
Mario Limonciello
afb09b6d9e Add support for the meson build system 2025-12-15 14:45:07 +01:00
Mario Limonciello
ec59f57b9e Add missing xorg-server.h header
This should be added by the source file, not the build system.
2025-12-15 14:44:26 +01:00
Enrico Weigelt, metux IT consult
0fc278443f configure.ac: fix package name and issue tracker URL
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-12-15 14:38:07 +01:00
Mario Limonciello
78179bb087 trivial: ignore .vscode directory
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
2025-12-15 14:34:53 +01:00
Enrico Weigelt, metux IT consult
7581891ec8 don't crash server on malloc fail (XNFasprintf)
Use standard libc asprintf() instead of XNFasprintf().

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-amdgpu-23.0.0.7
2025-11-07 09:27:39 +01:00
b-aaz
04d2e00121 Brings back checks for older MESA versions.
Reverts commits 6e65547 and 479df8e.
These commits caused the build to fail on DragonFlyBSD.

mesa-libs 21.3.9 is not by any means ancient, it is only 3 years old and
it is still receiving critical bug fixes, and most importantly it is
still being used on DragonFlyBSD, also these are relatively small and
harmless checks.

Signed-off-by: b-aaz <b-aazbsd.proton.me>
xlibre-xf86-video-amdgpu-23.0.0.6
2025-10-20 10:31:34 +00:00
Enrico Weigelt, metux IT consult
bcf58946ab drmmode_display: fix missing include of dpmsconst.h
Don't rely on some Xserver SDK header is silently doing it
by accident.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-amdgpu-23.0.0.5
2025-09-24 12:26:19 +02:00
Enrico Weigelt, metux IT consult
57c843ac5f drop unused simple_list.h
Nothing from this header is used, so we can drop it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 22:25:39 +10:00
Enrico Weigelt, metux IT consult
16a07ae2eb drop HAVE_NOTIFY_FD
It's always set, so no need to ifdef on it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 22:24:04 +10:00
Joseph Crowell
d65f27c385 change project name from Xorg to Xlibre
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 22:21:25 +10:00
Enrico Weigelt, metux IT consult
29bcf7cead xfree86: amdgpu: fix amdgpu_mode_hotplug() conditional build
If HAVE_LIBUDEV isn't set, this function isn't needed, so also should
be ifdef'ed out.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
xlibre-xf86-video-amdgpu-23.0.0.4
2025-08-05 12:28:43 +10:00
Enrico Weigelt, metux IT consult
54e52ecf82 make amdgpu_mode_hotplug() static
only used inside the same source file, so better make it static,
so we also get rid of missing prototype warning.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Enrico Weigelt, metux IT consult
7d87cd5b64 make find_clones() static
only used inside the same source file, so better make it static,
so we also get rid of missing prototype warning.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Enrico Weigelt, metux IT consult
2248d5b1b2 make drmmode_crtc_hw_id() static
only used inside the same source file, so better make it static,
so we also get rid of missing prototype warning.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Enrico Weigelt, metux IT consult
d903737df1 configure.ac: drop obsolete check for dri3.h
This header is always present in xfree86 SDK for aeons now and already
manadatory for this driver, so there's no need for extra check whose
result isn't used anyways.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Enrico Weigelt, metux IT consult
b2ecf72792 xfree86: amdgpu: drmmode_lut_compose() use char* for pointer arithmetics
C standard forbids pointer arithmetics on `void*`, only a GNU extension
allows that. On FreeBSD we're getting a warning on that.

Better adhere to the standard and use `char*` instead of `void*` here.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Enrico Weigelt, metux IT consult
24ce266ca1 make AMDGPUBlank() and AMDGPUUnblank() static
only used inside the same source file, so better make them static,
so we also get rid of missing prototype warning.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Enrico Weigelt, metux IT consult
65e99416c4 make amdgpu_sync_shared_pixmap() static
it's only used inside the same source file, so better make it static,
so we also get rid of missing prototype warning.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Enrico Weigelt, metux IT consult
cac5561a21 fix shadowed sfield declarations
those fields are already declared at the function scope and used there,
so there's no need to have the same one a second time at branch scope.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Enrico Weigelt, metux IT consult
fb4912cd4a drop superfluous getAMDGPUEntityIndex() and _X_EXPORT
a) instead of duplicated extern declarations of gAMDGPUEntityIndex in
   several source files, just move this into amdgpu_drv.h header.
b) no need to _X_EXPORT this field (no other modul using it ever).
c) no need for extra getter function, just use the field directly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Joseph Crowell
60020bc22e use void* instead pointer
this typedef just isn't needed, and going to be phased out in the SDK.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Joseph Crowell
5dc629a43c whitespace cleanup
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Enrico Weigelt, metux IT consult
ea30a8b4df dri2: fix name collision on ClientStateCallback
The name ClientStateCallback is already taken for a global field, so we
shouldn't also use it for local one.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-08-05 12:28:43 +10:00
Joseph Crowell
e30d066201 Merge branch 'master' into pr/old-mesa xlibre-xf86-video-amdgpu-23.0.0.3 2025-07-31 16:27:45 +10:00
Enrico Weigelt, metux IT consult
16e22659fd configure.ac: no need to check for GLAMOR_NO_DRI3 and old libglamor
This symbol is always present for over a decade ago, so no need
to check for it. And so we also don't need any support for old
external libglamor anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-31 16:19:21 +10:00
Enrico Weigelt, metux IT consult
7a4c54cd99 drop obsolete checks for dri3.h
It's always present, no matter whether DRI3 is actually enabled.
No need to care about ancient - pre-DRI3 - Xserver versions.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-31 16:18:48 +10:00