Package Details: amdonly-gaming-vulkan-radeon-git 25.1.0_devel.203217.2ee3bef2522.d41d8cd-1

Git Clone URL: https://aur.archlinux.org/mesa-amdonly-gaming-git.git (read-only, click to copy)
Package Base: mesa-amdonly-gaming-git
Description: Radeon's Vulkan mesa driver
Upstream URL: https://www.mesa3d.org/
Licenses: LicenseRef-mesa
Conflicts: vulkan-radeon
Provides: vulkan-driver, vulkan-radeon
Submitter: NeroReflex
Maintainer: NeroReflex (DexterHaxxor)
Last Packager: NeroReflex
Votes: 16
Popularity: 0.90
First Submitted: 2023-02-27 22:38 (UTC)
Last Updated: 2025-03-15 22:17 (UTC)

Required by (96)

Sources (3)

Latest Comments

1 2 3 4 5 6 .. 10 Next › Last »

Fabse commented on 2025-03-16 13:12 (UTC)

The build currently fails for me, it manages to compile but fails at packaging due to missing file:

==> Creating package "amdonly-gaming-vulkan-radeon-git"...
  -> Generating .PKGINFO file...
==> WARNING: Cannot find library listed in 'provides': lib:libvulkan_radeon.so
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_amdonly-gaming-mesa-git()...
renamed 'fakeinstall/usr/share/drirc.d/00-mesa-defaults.conf' -> '/home/fabse/.cache/paru/clone/mesa-amdonly-gaming-git/pkg/amdonly-gaming-mesa-git/usr/share/drirc.d/00-mesa-defaults.conf'
renamed 'fakeinstall/usr/share/glvnd/egl_vendor.d/50_mesa.json' -> '/home/fabse/.cache/paru/clone/mesa-amdonly-gaming-git/pkg/amdonly-gaming-mesa-git/usr/share/glvnd/egl_vendor.d/50_mesa.json'
renamed 'fakeinstall/usr/lib/dri/libdril_dri.so' -> '/home/fabse/.cache/paru/clone/mesa-amdonly-gaming-git/pkg/amdonly-gaming-mesa-git/usr/lib/dri/libdril_dri.so'
mv: cannot stat 'fakeinstall/usr/lib/dri/radeonsi_dri.so': No such file or directory
==> ERROR: A failure occurred in package_amdonly-gaming-mesa-git().

NeroReflex commented on 2025-03-16 02:19 (UTC)

@Supdrewin game me a patch that removes software-based rendering and removed a sneaky -march=native. I have decided to keep march=native but accepted the removal of software rendering. Also I might go ahead and remove llvm support if rusticl doesn't need that. Be prepared to that.

Supdrewin commented on 2025-03-14 14:01 (UTC) (edited on 2025-03-14 14:10 (UTC) by Supdrewin)

Clover is deprecated 2 days ago and slated for removal.

diff --git a/PKGBUILD b/PKGBUILD
index 4d20161..168839c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,13 +14,13 @@
 # Contributor: Thomas Dziedzic < gostrc at gmail >
 # Contributor: Antti "Tera" Oja <antti.bofh@gmail.com>
 # Contributor: Diego Jose <diegoxter1006@gmail.com>
+# Contributor: Supdrewin <supdrewin at gmail dot com>

 pkgbase=mesa-amdonly-gaming-git
-pkgver=25.1.0_devel.202916.1835bf3520d.d41d8cd
+pkgver=25.1.0_devel.203169.b3866595883.d41d8cd
 options=(!lto) # LTO is bad for mesa, makes random applications crash on my system
 pkgname=(
   'amdonly-gaming-vulkan-mesa-layers-git'
-  'amdonly-gaming-opencl-clover-mesa-git'
   'amdonly-gaming-opencl-rusticl-mesa-git'
   'amdonly-gaming-vulkan-radeon-git'
   'amdonly-gaming-mesa-git'
@@ -74,9 +74,11 @@ makedepends=(
 )
 source=(
   'mesa::git+https://gitlab.freedesktop.org/mesa/mesa.git#branch=main'
+  'rusticl-radeonsi.conf'
   'LICENSE'
 )
 b2sums=('SKIP'
+        '35c88904596100f29830bebb1a3d1a9a90e01b12c8311980d6da5476372ea5c1930f296958ee3b5cbadb62b644f43b18e2791275b65c2fa6e1278674714469a7'
         'cc60238726b35133b5b729fb4ed1e76e04136588533615d84b4a54656d5b41727d5e7ff06ef4de3eb102eed6669d6c5c5cb8ac9fbdf6fc25aa477877c5c3ba87')


@@ -125,10 +127,9 @@ build() {
     -D b_ndebug=true
     -D b_lto=false
     -D egl=enabled
-    -D gallium-drivers=radeonsi,softpipe,zink
+    -D gallium-drivers=radeonsi
     -D gallium-extra-hud=true
     -D gallium-nine=false
-    -D gallium-opencl=icd
     -D gallium-rusticl=true
     -D gallium-va=enabled
     -D gallium-vdpau=enabled
@@ -144,21 +145,15 @@ build() {
     -D lmsensors=enabled
     -D microsoft-clc=disabled
     -D platforms=x11,wayland
-    -D rust_std=2021
     -D valgrind=disabled
     -D video-codecs=all
     -D vulkan-drivers=amd
     -D vulkan-layers=device-select,overlay
     -D vulkan-beta=true
-    --wrap-mode=nofallback
     -D sysconfdir=/etc
-)
-
-  # Build only minimal debug info to reduce size
-  #CFLAGS+=' -g1'
-  #CXXFLAGS+=' -g1'
-
-  CFLAGS+=" -march=native "
+    --wrap-mode=nofallback
+    --buildtype=release
+  )

   arch-meson mesa build "${meson_options[@]}"
   meson configure build --no-pager # Print config
@@ -206,35 +201,6 @@ package_amdonly-gaming-vulkan-mesa-layers-git() {
   install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
 }

-package_amdonly-gaming-opencl-clover-mesa-git() {
-  pkgdesc="OpenCL support with clover for mesa drivers"
-  depends=(
-    'clang'
-    'expat'
-    'libdrm'
-    'libelf'
-    'spirv-llvm-translator'
-    'zstd'
-
-    'libclc'
-  )
-  optdepends=('opencl-headers: headers necessary for OpenCL development')
-  provides=(
-    'opencl-driver'
-    'opencl-clover-mesa'
-  )
-  conflicts=(
-    'opencl-mesa'
-    'opencl-clover-mesa'
-  )
-
-  _install fakeinstall/etc/OpenCL/vendors/mesa.icd
-  _install fakeinstall/$_libdir/libMesaOpenCL*
-  _install fakeinstall/$_libdir/gallium-pipe
-
-  install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
-}
-
 package_amdonly-gaming-opencl-rusticl-mesa-git() {
   pkgdesc="OpenCL support with rusticl for mesa drivers"
   depends=(
@@ -261,6 +227,8 @@ package_amdonly-gaming-opencl-rusticl-mesa-git() {
   _install fakeinstall/etc/OpenCL/vendors/rusticl.icd
   _install fakeinstall/$_libdir/libRusticlOpenCL*

+  # enable Rusticl with radeonsi driver
+  install -m644 -Dt "${pkgdir}/etc/environment.d" rusticl-radeonsi.conf
   install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
 }

diff --git a/rusticl-radeonsi.conf b/rusticl-radeonsi.conf
new file mode 100644
index 0000000..0caeb36
--- /dev/null
+++ b/rusticl-radeonsi.conf
@@ -0,0 +1 @@
+RUSTICL_ENABLE=radeonsi

NeroReflex commented on 2025-03-10 00:30 (UTC) (edited on 2025-03-10 00:30 (UTC) by NeroReflex)

@cscs thank you, much appreciated. I had no idea they removed osmesa.

I am a bit lost on why they did it and I don't know what that will cause once installed in a system of someone using the feature, but I guess the idea is to use a vulkan in-memory buffer?

Hopefully they won't revert the change.

P.S. do you want to be added to maintainers?

cscs commented on 2025-03-09 22:59 (UTC) (edited on 2025-03-09 23:00 (UTC) by cscs)

With the removal of osmesa as seen here: https://gitlab.freedesktop.org/mesa/mesa/-/commit/027ccd963b1f8f288bef4224aedcddc1557e4f8a

The diff now becomes

@@ -143,10 +143,8 @@
     -D llvm=enabled
     -D lmsensors=enabled
     -D microsoft-clc=disabled
-    -D osmesa=true
     -D platforms=x11,wayland
     -D rust_std=2021
-    -D shared-glapi=enabled
     -D valgrind=disabled
     -D video-codecs=all
     -D vulkan-drivers=amd
@@ -331,8 +329,7 @@
   _install fakeinstall/$_libdir/dri/*_dri.so
   _install fakeinstall/$_libdir/gbm/dri_gbm.so*

-  _install fakeinstall/$_libdir/lib{gbm,glapi}.so*
-  _install fakeinstall/$_libdir/libOSMesa.so*
+  _install fakeinstall/$_libdir/libgbm.so*
   _install fakeinstall/$_libdir/libgallium*.so*

   # vdpau drivers

(That is in addition to removal of glapi we also remove osmesa.)

NeroReflex commented on 2025-03-09 02:58 (UTC)

I know. I tried fixing this package multiple times but upstream keeps breaking it. The ugly of -git I suppose. I will look into it more when they will have decided what files to generate.

Melechtna commented on 2025-03-09 01:52 (UTC)

This seems to be broken in multiple ways, even with the dif, the issue then just scoots to libOSMesa

cscs commented on 2025-02-17 10:22 (UTC) (edited on 2025-02-17 22:55 (UTC) by cscs)

Does build with the following diff.

@@ -146,7 +146,6 @@
     -D osmesa=true
     -D platforms=x11,wayland
     -D rust_std=2021
-    -D shared-glapi=enabled
     -D valgrind=disabled
     -D video-codecs=all
     -D vulkan-drivers=amd
@@ -331,7 +330,7 @@
   _install fakeinstall/$_libdir/dri/*_dri.so
   _install fakeinstall/$_libdir/gbm/dri_gbm.so*

-  _install fakeinstall/$_libdir/lib{gbm,glapi}.so*
+  _install fakeinstall/$_libdir/libgbm.so*
   _install fakeinstall/$_libdir/libOSMesa.so*
   _install fakeinstall/$_libdir/libgallium*.so*

ChrisLane commented on 2025-02-10 11:46 (UTC)

*facepalm I forgot to update the PKGBUILD maintainers comment, oh well

ChrisLane commented on 2025-02-10 11:45 (UTC)

Removing myself from the maintainers list on this package for now as I don't use it and don't want to mislead people into thinking I'll fix things.