commit: 62233df2747046a22da0a0f53fbc11870688198f Author: Denis Reva <denis7774 <AT> gmail <DOT> com> AuthorDate: Fri Aug 7 12:02:16 2020 +0000 Commit: Denis Reva <denis7774 <AT> gmail <DOT> com> CommitDate: Fri Aug 7 12:02:16 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=62233df2
media-libs/amdvlk: new version 2020.3.3 2020-8-6 update New feature and improvement Enable pipeline cache Enable sharing metadata of images. CmdBufferLogger: Add dump Viewports Improve the implementation of defer-freeing command chunk in QueueContext Add support for DispatchMeshIndirectMutli Issue fix Fix for memory leak in VaMgr Singleton Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Denis Reva <denis7774 <AT> gmail.com> media-libs/amdvlk/Manifest | 5 ++ media-libs/amdvlk/amdvlk-2020.3.3.ebuild | 125 +++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+) diff --git a/media-libs/amdvlk/Manifest b/media-libs/amdvlk/Manifest index e939ab0..1b2c437 100644 --- a/media-libs/amdvlk/Manifest +++ b/media-libs/amdvlk/Manifest @@ -1,20 +1,25 @@ DIST AMDVLK-v-2020.Q2.6.tar.gz 30423 BLAKE2B f087a98e148be5fe632eb6eb4459de306d949aa1a51cf6bca0b456ae442e0f153f7e058f735de11c332c512eda910bbf27c2d2ee7bf57e7a2c86dfd333cbd47e SHA512 8fc402d09c0c0c30075f904cbc8378ad819834bd3e3745be689403095af6b64830e06662907d7a52ebefa77220adc2b047bbbf5487459a36a0a55c6c69a31786 DIST AMDVLK-v-2020.Q3.1.tar.gz 31567 BLAKE2B a3dc1ceba086f8f16dcd561974f26547bb736bf18aa34d872b56be0950821a0d1468e3030037820d34fd2fd464481ebdf74def5a7d754b87c4a2d6c38371242a SHA512 ecac7c4ee10a8e2ce3224e52ed375c01a6796c129d890ff4dcc3390587635158f7cbf3d6dac6777133c65be2cd3f7defdda6bd82b52161276fe389688608b3e7 DIST AMDVLK-v-2020.Q3.2.tar.gz 32254 BLAKE2B 79819667860cb2b75845fae90f595a4f2aede8405227915f568f9d83ea98d1c74b41197279f0fd146a2d37e7da489b47172853e554e486b7bef836787ac54356 SHA512 81a53f98d2c622b89367a47062b212a5ddeb238874f87e1fe6489ab2c17e4389accc3d1c5240ff2f4e4518816c8aeee4f70f996e16687a9feb0ea967e52d281d +DIST AMDVLK-v-2020.Q3.3.tar.gz 32259 BLAKE2B 5b380007bc134768d4f4cfc2fb47ddfefd241781849a02664f6b755ea290ba9acdde040a5d0c897ded41460ec95e60a56dd5014717b22ee27ea03589575a5270 SHA512 6773fc68daf0c00a5c5bd7f35e17f09e9f40d83eaa11b62d6ae69448ed8349bf5bfab9edd6b245665a2abf29032158e28c8cfca5d2b2e97e9878b0964ff68306 DIST CWPack-7387247eb9889ddcabbc1053b9c2052e253b088e.tar.gz 24538 BLAKE2B 76c4da32ea06df355f7e8f77a14c185b2ccab2ce2762988f04a04d65b674e089d4fc27206e744f89b4bd84c9d7226d324414a31941303290e7f574e9d64756cf SHA512 38378ef325e42a7356511c2fc06b6c896581968079e85c4b924a1768d895feecaf1eb8fd65afb59bed0f66e0547104d67c2deb9f82a86f4b9fa65b36e57cd47d DIST MetroHash-712f76fee75d69b23a1ea8f6465752c3ccaaf9a2.tar.gz 11754 BLAKE2B c08cc66b169e818d31b563ce25d903e81d029e8f869d6fd6bf44f21e36374721c991000d11d30f917fa829f51561ff51f09be88571803ff2395f371fd256bc77 SHA512 7a8dd0a91b95bcbc738d9d15d19fd25e4f7eeb5aee8bfb93ff185ed29ba0bdd29ffbe6629ebd4c3d0e48ecacdbe6dd26adee630f4cbf3c02d6829c64d7f461c9 DIST llpc-6c94115883d99ce6f4c2edb16b0f7cd513289188.tar.gz 1945382 BLAKE2B 2f985402f21ef375ded888fd4fbadda86a01dd46c0956c6dddb91e905b003623090c7733f1e95293b52ba294dd46dab8bc61f2acf6eb576a469dbd23f9026be1 SHA512 68c981ce9bdb76294df7c32b19d044f03151d061ac02cb951a67bc234e543d7cb00588d9d36e5b24c485f5c457b23992eafe79f3f7bff37eafd1bbb147ec6a2a +DIST llpc-897de5981ede47587bf4bd0205b860338eb45fa7.tar.gz 1973412 BLAKE2B 45f363c4bafa5c8c8f3802c6e5b80ce539e96c89432a0820ee7fb1d9b6fb5aa09a8b2a34fc38f9579e6de5280566cd7c9206137ab9464d0c6b0f9bfa297ae67d SHA512 3bc8aa27b70c81e46a262b10978c1ad6d942bc05963dac077a11b20fcacf2a8ef204608d30493f39e870cb07de22dc02fcdb49e13bd09e2d457148d4bc0cb943 DIST llpc-9acb06852cdf043b0e7b6867800be3cc3bf61383.tar.gz 1971257 BLAKE2B 9d4ea121efd4ea0f5f447599fa5a1846a38a93ee6c15b7e95b96d9c88d876d2fad486bc93d75e68e8a6b5e376d3de2b0ddc2c19bd000623af6b581cd260f3145 SHA512 7096684f7e52f004e17f079c3184332bb5cb20c3e67115b6f425d55f6294e8bc04c653c2cc1bad2cf8c255cdc260fdb3ad09d2288ff9df13041f34d39ab50561 DIST llpc-be51df411e14ae19145ab046f95338ed38243b91.tar.gz 1963173 BLAKE2B 0dfabfbb74d1ad78a981e8c576a65ac2e42adc8e0f1b5bc55f9e947d154d4f39556ecd9ae6e77a3824cb988b7ed7398df8c5717bcc15d67ac5819562ccd30030 SHA512 861957e9441b76851899ea6699546a52fa4f548709ad30734eeaf2f0d165af2be219985025ad3b0c620a2dcc2fad0deb6375789ced6aa99cc91ec4018cd8c944 DIST llvm-project-319fe935a7a607e83d2885c881ae5aeff9b08b22.tar.gz 120709172 BLAKE2B f671d6d88128d46ec1e6570cb5dd62de13ee85fe23ed0f9eb4209a8b26e4fdd644c60328d6d1d951da7b7764d3c1ee64dcd66c30b04f5e5f604a7c6215006f8d SHA512 5e836c60fd2461838d8b1f598cdafb0739bb9cb09732e39102b9cd87af3d6f9348e62737ac21ddda3e52a750114bee096d49051da0c024d33095b1e9b6e43b1a DIST llvm-project-56e1f9b8df3d414ab7acc2fa07272d318725d440.tar.gz 120318547 BLAKE2B 2cae71a1e4eb67e932402406e350e1dc86e645e82253df28f94f616680d48b20c3b2a72e9fb1985f5398cca0055eb1cfb1bb142a704a55ae4bf7c00f49803ff7 SHA512 906b0bf6d4d48c108871cf5400540db70cdbe53a95b25ed5f445183c638778062e57ae63d9f3e0fae8f3cb5659cc8fbf76c6e60a001a0eeb3956b27fbb372e68 DIST llvm-project-a458b2991a6fb6d345b088380f6a9a570a8031a5.tar.gz 119689214 BLAKE2B 34f90e60bb1f47d3deb7a57bc2444975bcc070e9317058716ba4a1e99b8286a9c502c2a3ea7c36c4bc3b140ecd247b68d8ca891c955cb21ddee4d1868755f033 SHA512 aa9c90e9b2a798ab6ca396790c58983133f2869bebc0aec043a69bec7e252ecb8604d3403193fccdbb84c95595958e76a92853b5c514d9ce45aaf15a65e86b6a +DIST pal-477c8e78bc4f8c7f8b4cd312e708935b0e04b1cc.tar.gz 7651927 BLAKE2B ef9515c26c0531d4da2bff62b133c608a3f0cf28d03a42f75e41611afaf843d13844155a7b722b76c1d2fa25f4262eef7698262dceb17a06428232a13ae61b20 SHA512 0c95441ea1b5bf28c6394ec69729e4aa9a1a86e811352dbcee1f3261859a6c0835f83144fe1e81dd811cb4bc501ece81bcedac4cfd66ed0cf9111d92248a590e DIST pal-6604885c5d60be4a29346f1774a6f7e331879428.tar.gz 7595895 BLAKE2B bbdb96d131c9bd6d862e20b7be880ee73b7337accec36200cc3027c3b57974dc2b3608fe01c43a0599712ebcc380617dcf7b751cc0d7c48272c3d41e2e81cf80 SHA512 f1086fa3cf4ec12eef8c1fb447abda29ac618bb2535a42f2258d01a96bb8df903daae6eec402a4aa3b7253b31dd028fe29ac202107c1f152d108755f4c988179 DIST pal-ea5db60841dab7d067f5010f28a980ef222bdf81.tar.gz 7602594 BLAKE2B 79e517f6a5395c6406e05f4a282e28a8e10fd8d2c6dde873c273f8b61a781e5a19ed94ddaf366e5ed5ddb9633412321e916da79cbf63249aaad6ad83a444af6a SHA512 7388cacd526d0b0c04859eb30404d2b430250e85d95e6069f570eaa0cfb1beb3657dd55c3411d76c78efc4cdfd54eb48189da98f969d1338029f9b287d835506 DIST pal-f632b07d42e9dc46f73e1d31c157130cb1647155.tar.gz 7515183 BLAKE2B b1ad09612059d25d3286a179552dd57921941033b503523adc11fc5a3dda6b4e0457f13d7d9d3ec4a6136d491eb06b6b160947d0f3e22f85173b9c28f3d42baa SHA512 9a63bcbb1b2d452ab516f20e15c5f1c8c767e88c5faa3d38e6e978e051ab9531487ae5cce6080f85431a947c33caf65b027cd502e99450fcea30f70e7430992a DIST spvgen-34ba176fc2fa8a9997a8a7bd0c731259e2578854.tar.gz 17881 BLAKE2B 78bcda972664c3fef421d1b34ca4cf2bba10a99231a97cc25d4bab510026fff11ad3d770a66e26670eca9025fdd45217104ad7e5d61a5b0cbae840cc02064537 SHA512 e302f0076548b8c3c353b7ab869e0ee4ceb69945f53fd69a291b0eef405e8fb4b7f16ba7454ef3bdb13bbaae9cbd9d4a4ceaf3bb3a62ff031e2a90bf1c2190a7 DIST spvgen-3f41158716709d96b5748a9ff0458ba9d2880576.tar.gz 17851 BLAKE2B c4e1cb58474cded7f86b02a2abfef825b7c1c7c06dad3fce6b0bfe6014e4a8f61444bc593463a01777a94cdc5f3e02c53ace3eff512f618dd4609c8633369841 SHA512 e501c71e327f8af2b9cf5988809a680223c5ffbc87e1e2695c9facb7b16314accdb91f009f91b14237af64a86e7397c3c4b1852d5e17df7071beb8457c42ca5f +DIST spvgen-8dc855026f2502ab3f45dadaf0bb802a57d6ad60.tar.gz 17875 BLAKE2B 432579d22368d4c2b6e67c0264c6c4cda07875bcb962b400d5e89ad39bb662537a0e131f67fead71cd1ec81366c993d3c3cf24a99a378867f7ce8eefc11f92ef SHA512 7ba69f5be5a3b6663c041d8091615ccada8c28fd16eba793423a1327060339344d4ef6fdf37891fd4490fc9632dc7b8f01050e8167d7f2abc8112837fabefa30 DIST spvgen-e0e6fdae66d8e2cd9949e514f4e6ce6c7e21cce9.tar.gz 17845 BLAKE2B e14871d7e582eb2c2c7074ab120b8a236b0eeb5c8118f897553f3036a8e7cb93959a3741a7e0457a95c2f45ca361e5d95fb7302f00a3ea35e2b5f6a693ed9601 SHA512 31757f66d68482674f648a80ea10c4f5732382391ce6df1a9d7214dd27e83d144c8da872e87daa881c5e01ce473e68ef3f2fda9667bf9074bf7f58753740b744 DIST xgl-39a4e9c63456ed421b1704179730e95883f26a1b.tar.gz 796505 BLAKE2B 4e81621c9b9538e20ad7910d2908c4760ddb72a329fa9d7376c02decf0b790dc45f5c5eb61afc529027be13a2785b51c495c478b74953e6c52b08ad844c43671 SHA512 291f7f1fba9b9c31874a8cc33f4748339a86b5d81d5b7840891a00372445f365c38908a26106a99992bee3a8c684deb52d293e11580cba10d3b160576fde942a DIST xgl-9a577aa9c496e2c77844fb91ede978da25b5afd3.tar.gz 792820 BLAKE2B 864f561cf1225c6f654bba297a37c678590d0a100ab5402b4358ca6ba2a5c6762455539aef0422da73fab0385ad1a69299c03c9cf4bbccf9b2c6b7939f02fbaa SHA512 04af3d8f3ac9d3e20386c082352d24cee0e72ffbeb642c3bb4ae6605c4464192214509b44a74e375c67f17108d16e64a47eef2d894eb7bee8c8bab851750c85f DIST xgl-cc812115fd720dd47c9f0d603c5da3ac2fea6e53.tar.gz 785027 BLAKE2B 6ebc5e571a548f29b665bbc9415bc3deaff47f569242c59a0f4b0268e45772310bc9f09262e132a30b5435ff8dd8d24819e266336532c350de1954ae2f9229a2 SHA512 631acaf7a40016f0fc0e85ac329de0a6139cf7c10878dc731e3ec4af2b24231798d339541a160b2c8cd85e3ccf34c332aff8e6c08d9ed4f58ae814e42cc60386 +DIST xgl-f4a992dd7e556ed5e7e2ffa2c830f1cd79bd4596.tar.gz 796925 BLAKE2B ff42c8698c3e3a7b6fcd5dd0f8de8ac74f38e1ccdab8a9146e8bc7244d29e4909660c10a1337ff5de0aa52e04e56a464fa1c1c0786612a23d18ef60481a9b626 SHA512 174a2aacf90cc866583627b0ed01f061dbe9d992172185d82411e51c126bb7b4a361c171aea0c6135fd9e11f2d8fedd4fb0fbfe5788e30302684cd902a8452ce diff --git a/media-libs/amdvlk/amdvlk-2020.3.3.ebuild b/media-libs/amdvlk/amdvlk-2020.3.3.ebuild new file mode 100644 index 0000000..bef5d48 --- /dev/null +++ b/media-libs/amdvlk/amdvlk-2020.3.3.ebuild @@ -0,0 +1,125 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +inherit multilib-minimal check-reqs + +#inherit cmake-multilib and cmake-utils build doesn't support https://github.com/GPUOpen-Drivers/AMDVLK/issues/151 +DESCRIPTION="AMD Open Source Driver for Vulkan" +HOMEPAGE="https://github.com/GPUOpen-Drivers/AMDVLK" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug wayland" +REQUIRED_USE="|| ( abi_x86_32 abi_x86_64 )" +###DEPENDS +BUNDLED_LLVM_DEPEND="sys-libs/zlib:0=[${MULTILIB_USEDEP}]" +DEPEND="wayland? ( dev-libs/wayland[${MULTILIB_USEDEP}] ) + ${BUNDLED_LLVM_DEPEND} + >=dev-util/vulkan-headers-1.2.143" +BDEPEND="${BUNDLED_LLVM_DEPEND} + dev-util/cmake" +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.2.141[${MULTILIB_USEDEP}]" + +CHECKREQS_MEMORY="4G" +CHECKREQS_DISK_BUILD="2G" +S="${WORKDIR}" +CMAKE_USE_DIR="${S}/xgl" + +###SOURCE CODE VARIABLES +FETCH_URI="https://github.com/GPUOpen-Drivers" +CORRECT_AMDVLK_PV="v-$(ver_rs 1 '.Q')" #Works only for amdvlk source code: transforming version 2019.2.2 to v-2019.Q2.2. Any other commits should be updated manually +##For those who wants update ebuild: check https://github.com/GPUOpen-Drivers/AMDVLK/blob/master/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="f4a992dd7e556ed5e7e2ffa2c830f1cd79bd4596" +PAL_COMMIT="477c8e78bc4f8c7f8b4cd312e708935b0e04b1cc" +LLPC_COMMIT="897de5981ede47587bf4bd0205b860338eb45fa7" +SPVGEN_COMMIT="8dc855026f2502ab3f45dadaf0bb802a57d6ad60" +LLVM_PROJECT_COMMIT="319fe935a7a607e83d2885c881ae5aeff9b08b22" +METROHASH_COMMIT="712f76fee75d69b23a1ea8f6465752c3ccaaf9a2" +CWPACK_COMMIT="7387247eb9889ddcabbc1053b9c2052e253b088e" +## SRC_URI +SRC_URI=" ${FETCH_URI}/AMDVLK/archive/${CORRECT_AMDVLK_PV}.tar.gz -> AMDVLK-${CORRECT_AMDVLK_PV}.tar.gz +${FETCH_URI}/xgl/archive/${XGL_COMMIT}.tar.gz -> xgl-${XGL_COMMIT}.tar.gz +${FETCH_URI}/pal/archive/${PAL_COMMIT}.tar.gz -> pal-${PAL_COMMIT}.tar.gz +${FETCH_URI}/llpc/archive/${LLPC_COMMIT}.tar.gz -> llpc-${LLPC_COMMIT}.tar.gz +${FETCH_URI}/spvgen/archive/${SPVGEN_COMMIT}.tar.gz -> spvgen-${SPVGEN_COMMIT}.tar.gz +${FETCH_URI}/llvm-project/archive/${LLVM_PROJECT_COMMIT}.tar.gz -> llvm-project-${LLVM_PROJECT_COMMIT}.tar.gz +${FETCH_URI}/MetroHash/archive/${METROHASH_COMMIT}.tar.gz -> MetroHash-${METROHASH_COMMIT}.tar.gz +${FETCH_URI}/CWPack/archive/${CWPACK_COMMIT}.tar.gz -> CWPack-${CWPACK_COMMIT}.tar.gz" + +###EBUILD FUNCTIONS +src_prepare() { + ##moving src to proper directories + mkdir -p "${S}" + mkdir -p "${S}/third_party" + mv AMDVLK-${CORRECT_AMDVLK_PV}/ "${S}/AMDVLK" + mv xgl-${XGL_COMMIT}/ "${S}/xgl" + mv pal-${PAL_COMMIT}/ "${S}/pal" + mv llpc-${LLPC_COMMIT}/ "${S}/llpc" + mv spvgen-${SPVGEN_COMMIT}/ "${S}/spvgen" + 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" + ##Installing rule + cat << EOF > "${T}/10-amdvlk-dri3.conf" || die +Section "Device" +Identifier "AMDgpu" +Option "DRI" "3" +EndSection +EOF + cd "${S}/xgl" + default +} + +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_WAYLAND_SUPPORT=$(usex wayland ) + -DCMAKE_BUILD_TYPE="$(usex debug "Debug" "Release")" + -B"${BUILD_DIR}" ) + cd "${S}"/xgl + cmake -H. "${mycmakeargs[@]}" +} + +multilib_src_install() { + if use abi_x86_64 && multilib_is_native_abi; then + mkdir -p "${D}/usr/lib64/" + mv "${BUILD_DIR}/icd/amdvlk64.so" "${D}/usr/lib64/" + insinto /usr/share/vulkan/icd.d + doins "${S}/AMDVLK/json/Redhat/amd_icd64.json" + else + mkdir -p "${D}/usr/lib/" + mv "${BUILD_DIR}/icd/amdvlk32.so" "${D}/usr/lib/" + insinto /usr/share/vulkan/icd.d + doins "${S}/AMDVLK/json/Redhat/amd_icd32.json" + fi +} + +multilib_src_install_all() { + insinto /usr/share/X11/xorg.conf.d/ + doins "${T}/10-amdvlk-dri3.conf" + einfo "AMDVLK requires DRI3 mode so config file is istalled in /usr/share/X11/xorg.conf.d/10-amdvlk-dri3.conf" + einfo "It's safe to double xorg configuration files if you have already had ones" +} + +pkg_postinst() { + elog "More information about the configuration can be found here:" + elog " https://github.com/GPUOpen-Drivers/AMDVLK" + ewarn "Make sure the following line is NOT included in the any Xorg configuration section:" + ewarn "Driver \"modesetting\"" + ewarn "Else AMDVLK breaks things" + ewarn "With some games AMDVLK is still not stable. Use it at you own risk" + elog "You may want to disable default vulkan mesa provider in package.use \"media-libs/mesa -vulkan\"" + elog "or perform export in /etc/env.d/ variable VK_ICD_FILENAMES=vulkanprovidername:vulkanprovidername2 " + elog "exampe| VK_ICD_FILENAMES=\"/usr/share/vulkan/icd.d/amd_icd64.json:/usr/share/vulkan/icd.d/amd_icd64.json\"" +}