Commit Graph

637 Commits

Author SHA1 Message Date
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
Enrico Weigelt, metux IT consult
6e65547971 configure.ac: drop check for GBM_BO_USE_FRONT_RENDERING
It's present since at least mesa 22.3. No need to care about ancient
mesa versions anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 16:12:55 +02:00
Enrico Weigelt, metux IT consult
479df8e526 configure.ac: drop check for GBM_BO_USE_LINEAR
It's present since at least mesa 22.3. No need to care about ancient
mesa versions anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 16:12:13 +02:00
Enrico Weigelt, metux IT consult
52a0b9c04e drop obsolete check for glamor_finish()
This function is always present since about a decade ago, so no need to
check for it and having a fallback.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:31:13 +02:00
Enrico Weigelt, metux IT consult
e0955847f6 configure.ac: drop checking for xf86CursorResetCursor()
This function is always present for about a decade now, so no need
to check for it (and having a fallback) anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:31:03 +02:00
Enrico Weigelt, metux IT consult
e92d84803c drop support for Xserver <= 1.18
No need to keep special workarounds for ancient Xserver versions.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:22:56 +02:00
Enrico Weigelt, metux IT consult
e2e25857f5 drop check for HAS_SYNC_SHARED_PIXMAP
This is always defined in the Xserver SDK for about a decade now.
No need to keep around workarounds for ancient Xserver versions.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:21:32 +02:00
Enrico Weigelt, metux IT consult
d5538ccc6a drop using glamor_egl_destroy_textured_pixmap() on ancient Xservers
No need to support ancient Xserver versions anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:21:17 +02:00
Enrico Weigelt, metux IT consult
aa652bd913 configure.ac: drop check for present.h
This header is always present, no matter whether present extension
actually enabled. Thus no need to explicitly check for it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:19:28 +02:00
Enrico Weigelt, metux IT consult
a721f2d59a drop checks on HAVE_CONFIG_H
We always have config.h here, so no need for the extra check.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:19:08 +02:00
Enrico Weigelt, metux IT consult
783c383754 drop checks for XF86_PDEV_SERVER_FD
It's always defined in the Xserver SDK since over a decade now.
No need to keep workarounds for ancien Xserver versions.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:14:27 +02:00
Enrico Weigelt, metux IT consult
cd40763e9f drop own copy of RegionDuplicate()
This function is present in the Xserver for way over a decade, so no
need to carry around our own copy anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:11:08 +02:00
Enrico Weigelt, metux IT consult
5e9f88232f drop checks for XF86_CRTC_VERSION
No need to support old Xserver versions with XF86_CRTC_VERSION < 8
or even XF86_CRTC_VERSION < 7.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:10:57 +02:00
Enrico Weigelt, metux IT consult
62898aa380 drop checking for XF86_LEASE_VERSION
It's always defined for about 7 years now. No need to keep special
hacks for ancient Xservers.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:10:48 +02:00
Enrico Weigelt, metux IT consult
f1d32a31ea drop check for ODEV_ATTRIB_FD and ODEV_ATTRIB_PATH
These are always present for over a decade now. No need to keep
special hacks for really ancient Xservers.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:03:44 +02:00
Enrico Weigelt, metux IT consult
747e057583 drop using glamor_glyphs_init() on old Xservers
This function has been removed over a decade ago - no need to support
such ancient Xserver versions anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 15:03:32 +02:00
Enrico Weigelt, metux IT consult
e579dbcb1e configure.ac: make xorgproto >= 7.1 mandatory
No need keep special hacks for such ancient xproto version.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 14:50:34 +02:00
Enrico Weigelt, metux IT consult
ee4b074555 configure.ac: no need to check for misyncshm.h
It's always present, no matter whether MIT sync fencing is actually
enabled in the Xserver (we're checking that at rnutime).

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 14:01:28 +02:00
Enrico Weigelt, metux IT consult
a82cc5f87c drop some compat stuff for ancient Xserver versions
We're not going to support ancient Xserver versions anymore, so this
can be dropped.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 14:01:15 +02:00
Enrico Weigelt, metux IT consult
2ae9d9addc drop checking HAS_DIRTYTRACKING_DRAWABLE_SRC
This symbol is always set since about a decade ago - no need to support
ancient Xserver versions anymore.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-07-29 14:00:59 +02:00