[arch-commits] Commit in amdvlk/trunk (PKGBUILD amdvlk.sh)
Laurent Carlier
lcarlier at archlinux.org
Wed Apr 21 16:07:37 UTC 2021
Date: Wednesday, April 21, 2021 @ 16:07:37
Author: lcarlier
Revision: 412987
upgpkg: amdvlk 2021.Q2.1-2: set default vulkan driver to RADV (FS#69289)
Added:
amdvlk/trunk/amdvlk.sh
Modified:
amdvlk/trunk/PKGBUILD
-----------+
PKGBUILD | 14 ++++++++++----
amdvlk.sh | 3 +++
2 files changed, 13 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-21 15:27:27 UTC (rev 412986)
+++ PKGBUILD 2021-04-21 16:07:37 UTC (rev 412987)
@@ -3,7 +3,7 @@
pkgname=amdvlk
pkgver=2021.Q2.1
-pkgrel=1
+pkgrel=2
pkgdesc="AMD's standalone Vulkan driver"
arch=(x86_64)
url="https://github.com/GPUOpen-Drivers"
@@ -11,8 +11,10 @@
provides=('vulkan-driver')
makedepends=('perl-xml-xpath' 'python' 'wayland' 'libxrandr' 'xorg-server-devel' 'cmake' 'ninja' 'git')
makedepends+=('python2') # spvgen
-source=("https://github.com/GPUOpen-Drivers/AMDVLK/archive/v-${pkgver}.tar.gz")
-sha256sums=('c491929f959404527816ec9a88755916282aceeb191cd7bfb0440682e202e186')
+source=("https://github.com/GPUOpen-Drivers/AMDVLK/archive/v-${pkgver}.tar.gz"
+ amdvlk.sh)
+sha256sums=('c491929f959404527816ec9a88755916282aceeb191cd7bfb0440682e202e186'
+ '6c00a8cb4ca4481d470f75ee7ea8a4effd1dac2c81317db506903e8d1f37d215')
prepare() {
local nrepos path name revision
@@ -60,5 +62,9 @@
install AMDVLK/LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/
sed -i "s#/lib64#/lib#g" "${pkgdir}"/usr/share/vulkan/icd.d/amd_icd64.json
- #sed -i "s#/lib64#/lib#g" "${pkgdir}"/usr/share/vulkan/implicit_layer.d/amd_icd64.json
+ sed -i "s#/lib64#/lib#g" "${pkgdir}"/usr/share/vulkan/implicit_layer.d/amd_icd64.json
+
+ # force radv as default driver - see FS#69289
+ install -m755 -d "${pkgdir}"/etc/profile.d
+ install amdvlk.sh "${pkgdir}"/etc/profile.d/
}
Added: amdvlk.sh
===================================================================
--- amdvlk.sh (rev 0)
+++ amdvlk.sh 2021-04-21 16:07:37 UTC (rev 412987)
@@ -0,0 +1,3 @@
+# force radv driver - see FS#69289
+export AMD_VULKAN_ICD=RADV
+
More information about the arch-commits
mailing list