public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Denis Reva" <denis7774@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/amdvlk/
Date: Tue,  4 Oct 2022 13:15:21 +0000 (UTC)	[thread overview]
Message-ID: <1664889300.8ceb17f61a4df6c10ff513a1917da9dc7f2583dd.RarogCmex@gentoo> (raw)

commit:     8ceb17f61a4df6c10ff513a1917da9dc7f2583dd
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Tue Oct  4 13:15:00 2022 +0000
Commit:     Denis Reva <denis7774 <AT> gmail <DOT> com>
CommitDate: Tue Oct  4 13:15:00 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8ceb17f6

media-libs/amdvlk: amdvlk updated to latest 2022.3.5

Bug: https://bugs.gentoo.org/665590
Signed-off-by: Denis Reva <denis7774 <AT> gmail.com>

 media-libs/amdvlk/Manifest               |   5 ++
 media-libs/amdvlk/amdvlk-2022.3.5.ebuild | 110 +++++++++++++++++++++++++++++++
 2 files changed, 115 insertions(+)

diff --git a/media-libs/amdvlk/Manifest b/media-libs/amdvlk/Manifest
index 3087560bd..bd3709874 100644
--- a/media-libs/amdvlk/Manifest
+++ b/media-libs/amdvlk/Manifest
@@ -3,10 +3,15 @@ DIST CWPack-4f8cf0584442a91d829d269158567d7ed926f026.tar.gz 39633 BLAKE2B d5b2a8
 DIST MetroHash-18893fb28601bb9af1154cd1a671a121fff6d8d3.tar.gz 11729 BLAKE2B b0e3de885e50c317141d62c885b421c7fd2e1ac783733704342bbed3109bff36a9209ab276f534a2231531483539221bbb1014bd39528a91124161bafc5646eb SHA512 8f12f95e80d594c8bd87a852c67a2d6777ce89d1a13e1a87ee17bbb876a0702c14ffe7a7fd65a244620f2043ad5d22ae8eb863d69f1dc5494d985733bbfb7bf9
 DIST amdvlk-CWPack-4f8cf0584442a91d829d269158567d7ed926f026.tar.gz 39633 BLAKE2B d5b2a88f0d563eef5beb42a8304cf6cdd825e75242c22acc360c5bb9cbd1d02a4f891b6b2f3a4803e1e6b48a4d176aad40f8bdeca92847f2fbf53674dedeaff3 SHA512 06d56baaba1f1224a5266f4a63c1abf70edba7cc16cc4e62f2f5b1ec94fc2c1cfc4c6f11a9c6ef42c23b29be8d07921caad5e919357c0bd82cf714783eee0bcc
 DIST amdvlk-MetroHash-18893fb28601bb9af1154cd1a671a121fff6d8d3.tar.gz 11729 BLAKE2B b0e3de885e50c317141d62c885b421c7fd2e1ac783733704342bbed3109bff36a9209ab276f534a2231531483539221bbb1014bd39528a91124161bafc5646eb SHA512 8f12f95e80d594c8bd87a852c67a2d6777ce89d1a13e1a87ee17bbb876a0702c14ffe7a7fd65a244620f2043ad5d22ae8eb863d69f1dc5494d985733bbfb7bf9
+DIST amdvlk-gpurt-b89f22aadd0a335be632055434a7f8ba152fcb37.tar.gz 278191 BLAKE2B 9774616f6875601136108f2e9d6336f18c5d58a98cd9dc01839df210cc5d484bcd0b6a754cec8660216ab92275aa88fa20bcc4d5b36fa727e258abd7d2e23a7f SHA512 9fa3ac42ec8ac416a1fe92ece3573f4a3ba874f6c3e8fce42754b89aace825f4ee680789ddd7e5ab3cac83b5eb04934d2e659a7543925b5ecdb7d8dbb91c4b92
 DIST amdvlk-gpurt-c1df7354336aba18d54c0e32a95b58eac0d44c07.tar.gz 273130 BLAKE2B ae88ac12ab34f6f9934bb5f151812a5f4a8c055e0f3665754608344fba85c4fc2fd743eb9d770f741ebb4392b364ca8bcd57d43a35ab0710bca52c92c437f46b SHA512 078cc01979c4b8944f6a4196317ab6de7d8aea24df6b7882d258e72fbf85559a2260042eb65e82143e3af41ee154adb5fe54e767b074d46d302d82fa88fa07e4
 DIST amdvlk-llpc-58214602f9bc8583795d60c21bf2f122df02d6b5.tar.gz 2444994 BLAKE2B 941ec7e7e4538dfe84ff14382389b20757276105f6d3d1744b55beb6ab5af809a525b77be14087f28797ca5ba623e65d18fe3d6db738c1276ea7559cae6ee9cc SHA512 f27a5cc61121d61cfc58b4e0c28435d678c9dc1e0b9839462ee746ef4089d49aa599ad852b2f5df01746db38589e306fb029e098f4dd60cf74e021362c4243a2
+DIST amdvlk-llpc-7857f2e209fc65374f2891be52e3a4a22fbae483.tar.gz 2467228 BLAKE2B 9715d5721770725371c1faa2d33f0217e998b5fc77aeb6a665d0a200db54d337fdfb3d9561abf54cf035009fb1dfd41b3e2e0ecf78eaceb5890877303d67a3ab SHA512 8a5a18ad64ee97d36aa7ae87c31112985c49c6755ae850fea141710cf54ff1610828eb5d35ea8f2a0148be9090f0c04099c94948e0c2489f68b0b58966847d03
+DIST amdvlk-llvm-project-5c82ef808fd269c95f5bd166d1846149e3afadc2.tar.gz 167121209 BLAKE2B 7a3da40252e68a58588a5b8e640f324f89ab750f98e4d5d58ba164ba4fa9a19561100b1e84cc75d93347101837e50a70c8d33bc3bca211990134fefd11e31a12 SHA512 d2b68885737ab77e976b6cddce733ad1ca5295e390b6900765b54d82b6d5d9fe9099d5c16dbb2e8c8e1c266c9e22e1c6298be2b41e7d48ecfc5521f3d960a692
 DIST amdvlk-llvm-project-f5023e507645c8178128891b96bf463f9a1a81a0.tar.gz 165884582 BLAKE2B d59d58ef37526690bf691f84915ab8353277c14241d097af82fddb225a37fd664c67711d572d02ab17eb9222e53d000f1e7e73a53db9afeefe65f42a705e3764 SHA512 57a48854b118a8204b06c7bd48417856708353eee36a6bdf0b7b98111a7fd5f6e6650f7a4e81d1646c6c12ba0e26bbb1fbcd2b477e17f16db35054400392b446
 DIST amdvlk-pal-9078fd5c95e2afd5331b414c07464efd37e4e0fb.tar.gz 11671512 BLAKE2B 2b796a10869cdb22b31944912866b01dfde49cf97446ab9711f98a6028caf54f7a16c88a173c57c57c5538e29d21a572852cc663b59633abc8f9aaab0e707791 SHA512 aefda31b77afdda11e8e0f8597fb159b5701a7f56f25a5b865185e81238fa45a7426af49ebfad57c0b3ec299cda417bd2a570d04e8c6f8e0d493d7c71a46bbea
+DIST amdvlk-pal-ae55b19b7553bf204b4945de9c11c5b05bc0e167.tar.gz 11241268 BLAKE2B f2fc5db1070493e3d79342143ec5005880d6a71669b8d741bde5d1c0f40b54b60f9e2f68a8092d6a398606ec97a95d0c7ab79ecbfe6568fee335e5a99b6631f1 SHA512 249ceb603a2f18391419053f11606a14483a2bbb097ce6b270b50a723a209db8125f08c719d61891f75cf9edbbaac20217bdcf4f820e35e933ea84594094d6e9
+DIST amdvlk-xgl-4118707939c2f4783d28ce2a383184a3794ca477.tar.gz 1188889 BLAKE2B 7e51c1fb954c2eca42544f6a890e996cbfb196cc3ad216d43a56feacbe16242240b1e2eefc8ebc13cb1c43d5541151e15369541a59abcef83c15daf15dedc14a SHA512 8735d6e0d008a066d2ac1ac9c7bdb31e162380a08c06e8f57c6d3e0c4a768b7a11484a5542c4b60c0ce91e560ea6d38c784ae8a6af25a72adcbefd7d95c88152
 DIST amdvlk-xgl-6a26878147ab246a8885ab5b4b8897626870c1cd.tar.gz 1177671 BLAKE2B 30b857230adf2174d6c51367ffb407bd347e3d8299d56e902dddc3129514376b564f48f06f4659ed558f5631d3f4c83d00d3e423f9d7aacd88578511b9c634a8 SHA512 06600624542ca549892fde15286102d8cdcbe0cb9bdba5b83da2ab19c05774b62990d73fae6a29ce623a7ce54d2bf4ab248743cbd3f41ee899bde941b71c5d79
 DIST llpc-d4763a9dcab538955bc5ad4b5c6e0139d8fe8949.tar.gz 2344266 BLAKE2B 30243cef585f77a9a7edaa162696926c5f4ee0c9612e0339b2e28d06968f57760f3ab31ddfd028bab8d0f4c78e3e46cc23a1139b244f21860af067c3a363e2af SHA512 51e17e92ab6ed9ba10d974326f9c25cd9bb994a305c781851c48cca48a868eb5977f5b733f5bd57ee22863a93a695fab2a527badf9eb46b7e16c284bdfa98b3d
 DIST llvm-project-48f1931b2b7afd7e0800fa084b7c0c2176dabfd4.tar.gz 165520733 BLAKE2B a1cdcbf9fef341e50b640fd27f0c3c86b926df4fd165615a6c35462bb61cf42d5c559fde0d92569cf697e7346de9f080db479e85c27ead331a8cd2fe5d61b99f SHA512 92d68c73ef7bdec96fc1eff351019b95791240d3c7d1862888fa7f584106453dccdfe243d053e09128717cd1b0257956b4cdedb1fc53525f7bdbb88091e26ea9

diff --git a/media-libs/amdvlk/amdvlk-2022.3.5.ebuild b/media-libs/amdvlk/amdvlk-2022.3.5.ebuild
new file mode 100644
index 000000000..8328310d3
--- /dev/null
+++ b/media-libs/amdvlk/amdvlk-2022.3.5.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit check-reqs python-any-r1 cmake-multilib
+
+DESCRIPTION="AMD Open Source Driver for Vulkan"
+HOMEPAGE="https://github.com/GPUOpen-Drivers/AMDVLK"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="wayland"
+REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )"
+
+BUNDLED_LLVM_DEPEND="sys-libs/zlib:0=[${MULTILIB_USEDEP}]"
+DEPEND="wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] )
+	${BUNDLED_LLVM_DEPEND}
+	>=dev-util/vulkan-headers-1.3.224"
+BDEPEND="${BUNDLED_LLVM_DEPEND}
+	${PYTHON_DEPS}
+	dev-util/cmake
+	virtual/linux-sources"
+RDEPEND=" ${DEPEND}
+	x11-libs/libdrm[${MULTILIB_USEDEP}]
+	x11-libs/libXrandr[${MULTILIB_USEDEP}]
+	x11-libs/libxcb[${MULTILIB_USEDEP}]
+	x11-libs/libxshmfence[${MULTILIB_USEDEP}]
+	>=media-libs/vulkan-loader-1.3.224[${MULTILIB_USEDEP}]
+	dev-util/glslang[${MULTILIB_USEDEP}]
+	dev-util/DirectXShaderCompiler"
+
+CHECKREQS_MEMORY="16G"
+CHECKREQS_DISK_BUILD="4G"
+S="${WORKDIR}"
+CMAKE_USE_DIR="${S}/xgl"
+
+###SOURCE CODE PER_VERSION VARIABLES
+FETCH_URI="https://github.com/GPUOpen-Drivers"
+##For those who wants update ebuild: check https://github.com/GPUOpen-Drivers/AMDVLK/blob/${VERSION}/default.xml , e.g. https://github.com/GPUOpen-Drivers/AMDVLK/blob/v-2022.Q3.5/default.xml
+##and place commits in the desired variables
+## EXAMPLE: XGL_COMMIT="80e5a4b11ad2058097e77746772ddc9ab2118e07"
+## SRC_URI="... ${FETCH_URI}/$PART/archive/$COMMIT.zip -> $PART-$COMMIT.zip ..."
+XGL_COMMIT="4118707939c2f4783d28ce2a383184a3794ca477"
+PAL_COMMIT="ae55b19b7553bf204b4945de9c11c5b05bc0e167"
+LLPC_COMMIT="7857f2e209fc65374f2891be52e3a4a22fbae483"
+GPURT_COMMIT="b89f22aadd0a335be632055434a7f8ba152fcb37"
+LLVM_PROJECT_COMMIT="5c82ef808fd269c95f5bd166d1846149e3afadc2"
+METROHASH_COMMIT="18893fb28601bb9af1154cd1a671a121fff6d8d3"
+CWPACK_COMMIT="4f8cf0584442a91d829d269158567d7ed926f026"
+# end of variables
+SRC_URI="${FETCH_URI}/xgl/archive/${XGL_COMMIT}.tar.gz -> amdvlk-xgl-${XGL_COMMIT}.tar.gz
+${FETCH_URI}/pal/archive/${PAL_COMMIT}.tar.gz -> amdvlk-pal-${PAL_COMMIT}.tar.gz
+${FETCH_URI}/llpc/archive/${LLPC_COMMIT}.tar.gz -> amdvlk-llpc-${LLPC_COMMIT}.tar.gz
+${FETCH_URI}/gpurt/archive/${GPURT_COMMIT}.tar.gz -> amdvlk-gpurt-${GPURT_COMMIT}.tar.gz
+${FETCH_URI}/llvm-project/archive/${LLVM_PROJECT_COMMIT}.tar.gz -> amdvlk-llvm-project-${LLVM_PROJECT_COMMIT}.tar.gz
+${FETCH_URI}/MetroHash/archive/${METROHASH_COMMIT}.tar.gz -> amdvlk-MetroHash-${METROHASH_COMMIT}.tar.gz
+${FETCH_URI}/CWPack/archive/${CWPACK_COMMIT}.tar.gz -> amdvlk-CWPack-${CWPACK_COMMIT}.tar.gz"
+
+src_prepare() {
+	einfo "moving src to proper directories"
+	mkdir -p "${S}"
+	mkdir -p "${S}/third_party"
+	mv xgl-${XGL_COMMIT}/ "${S}/xgl"
+	mv pal-${PAL_COMMIT}/ "${S}/pal"
+	mv llpc-${LLPC_COMMIT}/ "${S}/llpc"
+	mv gpurt-${GPURT_COMMIT}/ "${S}/gpurt"
+	mv llvm-project-${LLVM_PROJECT_COMMIT}/ "${S}/llvm-project"
+	mv MetroHash-${METROHASH_COMMIT}/ "${S}/third_party/metrohash"
+	mv CWPack-${CWPACK_COMMIT}/ "${S}/third_party/cwpack"
+	cmake_src_prepare
+}
+
+multilib_src_configure() {
+	local mycmakeargs=(
+		-DBUILD_WAYLAND_SUPPORT=$(usex wayland)
+		-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr/lib/llvm/amdvlk"
+		-DLLVM_VERSION_SUFFIX="-$(get_libdir)-amdvlk"
+		-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
+		-Wno-dev
+		)
+	cmake_src_configure
+}
+multilib_src_install(){
+	cmake_src_install
+	rm -r "${D}"/var/ || die "can't remove incorrect temporary files of amdvlk"
+	einfo "Correcting permissions of amdvlk $(get_libdir) libraries"
+	fperms -R 775 /usr/lib/llvm/amdvlk/$(get_libdir)
+}
+
+multilib_src_install_all() {
+	cat > "99${PN}" <<-EOF
+		LDPATH="${EPREFIX}/usr/lib/llvm/amdvlk/lib:${EPREFIX}/usr/lib/llvm/amdvlk/lib64"
+	EOF
+	doenvd "99${PN}"
+}
+
+pkg_postinst() {
+	ewarn "Make sure the following line is NOT included in the any Xorg configuration section:"
+	ewarn "| Driver	  \"modesetting\""
+	ewarn "and make sure you use DRI3 mode for Xorg (not revelant for wayland)"
+	elog "More information about the configuration can be found here:"
+	elog "https://github.com/GPUOpen-Drivers/AMDVLK"
+	elog "You can use AMD_VULKAN_ICD variable to switch to the required driver."
+	elog "AMD_VULKAN_ICD=RADV application   - for using radv."
+	elog "AMD_VULKAN_ICD=AMDVLK application - for using amdvlk."
+}


             reply	other threads:[~2022-10-04 13:15 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-04 13:15 Denis Reva [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-12 19:08 [gentoo-commits] repo/proj/guru:dev commit in: media-libs/amdvlk/ David Roman
2024-08-19 16:08 Lucio Sauer
2024-01-18 18:39 YOSHIOKA Takuma
2024-01-18 11:46 David Roman
2023-03-22  4:43 Denis Reva
2023-03-03 13:07 Denis Reva
2023-02-28 12:58 Denis Reva
2023-02-24 11:09 Denis Reva
2023-02-23 13:44 Denis Reva
2023-02-18  9:34 Denis Reva
2023-01-13 10:13 Denis Reva
2022-12-28 17:56 Denis Reva
2022-12-25 13:32 Denis Reva
2022-12-25  9:09 Denis Reva
2022-12-25  9:09 Denis Reva
2022-12-16 15:23 Denis Reva
2022-12-16 15:12 Denis Reva
2022-12-13 11:04 Denis Reva
2022-12-10  6:48 Denis Reva
2022-10-27  9:32 Denis Reva
2022-10-27  9:32 Denis Reva
2022-10-27  9:32 Denis Reva
2022-10-19  6:54 Denis Reva
2022-10-12  8:46 Denis Reva
2022-10-04 13:15 Denis Reva
2022-10-04 13:15 Denis Reva
2022-09-22  5:28 Denis Reva
2022-09-19 10:25 Denis Reva
2021-12-16  8:47 Denis Reva
2021-05-05  7:32 Alessandro Barbieri
2021-04-25 17:05 Denis Reva
2021-02-06  5:14 Denis Reva
2020-12-23 12:02 Denis Reva
2020-11-20 16:03 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-11-20 16:03 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-11-19  6:28 Denis Reva
2020-11-17  8:11 Denis Reva
2020-11-05 11:36 Denis Reva
2020-10-27  4:55 Denis Reva
2020-10-16  9:39 Denis Reva
2020-09-22 15:32 Denis Reva
2020-09-14 12:56 Denis Reva
2020-08-07 12:02 Denis Reva
2020-07-23 16:33 Denis Reva
2020-07-21  9:05 Denis Reva
2020-07-04 15:01 Denis Reva
2020-06-27  9:37 Denis Reva
2020-05-29 12:34 Denis Reva
2020-05-14 14:56 Denis Reva
2020-05-01  6:16 Denis Reva
2020-04-30 11:25 Denis Reva
2020-04-25  0:37 Alessandro Barbieri
2020-04-16 15:03 Denis Reva
2020-04-11 20:32 Andrew Ammerlaan
2020-04-11 14:06 Denis Reva
2020-04-11  8:21 Denis Reva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1664889300.8ceb17f61a4df6c10ff513a1917da9dc7f2583dd.RarogCmex@gentoo \
    --to=denis7774@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox