Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 616780 Details for
Bug 665590
media-libs/amdvlk - AMD Open Source Driver for Vulkan
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
media-libs/amdvlk-2020.1.2-r1.ebuild
amdvlk-2020.1.2-r1.ebuild (text/plain), 4.57 KB, created by
Reva Denis
on 2020-03-02 16:40:32 UTC
(
hide
)
Description:
media-libs/amdvlk-2020.1.2-r1.ebuild
Filename:
MIME Type:
Creator:
Reva Denis
Created:
2020-03-02 16:40:32 UTC
Size:
4.57 KB
patch
obsolete
># Copyright Gentoo Foundation ># Public domain > >EAPI=6 > >PYTHON_COMPAT=( python{3_6,3_7,3_8} ) >MULTILIB_COMPAT=( abi_x86_{32,64} ) > >inherit python-any-r1 git-r3 multilib-minimal flag-o-matic check-reqs > >DESCRIPTION="AMD Open Source Driver for Vulkan" >HOMEPAGE="https://github.com/GPUOpen-Drivers/AMDVLK" > >RESTRICT="mirror" > >LICENSE="MIT" >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="debug wayland" > >DEPEND="dev-util/cmake > wayland? ( > dev-libs/wayland[${MULTILIB_USEDEP}] > ) > >=dev-util/vulkan-headers-1.2.133" > >RDEPEND="${PYTHON_DEPS} > x11-libs/libdrm[${MULTILIB_USEDEP}] > x11-libs/libXrandr[${MULTILIB_USEDEP}] > x11-libs/libxcb[${MULTILIB_USEDEP}] > x11-libs/libxshmfence[${MULTILIB_USEDEP}] > virtual/libstdc++ > >=dev-util/vulkan-headers-1.2.133 > >=media-libs/vulkan-loader-1.2.133[${MULTILIB_USEDEP}] > net-misc/curl > wayland? ( > dev-libs/wayland[${MULTILIB_USEDEP}] > )" >CHECKREQS_MEMORY="3G" >CHECKREQS_DISK_BUILD="2G" > >FETCH_URI="https://github.com/GPUOpen-Drivers" > >src_unpack() { > mkdir -p ${S}/drivers > cd ${S}/drivers > #for those who wants update ebuild: check https://github.com/GPUOpen-Drivers/AMDVLK/blob/master/default.xml > #and place it in the constructions > #Fetching: git-r3_fetch «repo» «commit» > #Then placing it: git-r3_checkout «repo» «part» > #Happy New 2020 year > > PART="xgl" > COMMIT_ID="8024f27f9457e3235bf4fcde0d2879bbaae7b0f2" > git-r3_fetch "${FETCH_URI}/${PART}" "${COMMIT_ID}" > git-r3_checkout "${FETCH_URI}/${PART}" ${S}/drivers/$PART > > #pal > PART="pal" > COMMIT_ID="45f531beaf2c2b0bc2272e63a2da0022f1b07ccf" > git-r3_fetch "${FETCH_URI}/${PART}" ${COMMIT_ID} > git-r3_checkout "${FETCH_URI}/${PART}" ${S}/drivers/$PART > > #pal > PART="llpc" > COMMIT_ID="f5268c3f6f906a3ae430a1aada7f54f70df091e8" > git-r3_fetch "${FETCH_URI}/${PART}" ${COMMIT_ID} > git-r3_checkout "${FETCH_URI}/${PART}" ${S}/drivers/$PART > > #spvgen > PART="spvgen" > COMMIT_ID="e9b2bc3a889ed6ac4f5a47b6c4c58460988e352e" > git-r3_fetch "${FETCH_URI}/${PART}" ${COMMIT_ID} > git-r3_checkout "${FETCH_URI}/${PART}" ${S}/drivers/$PART > > #AMDVLK > PART="AMDVLK" > COMMIT_ID="b81c3a09c91bb49e287ea163a7527ed914638eb8" > git-r3_fetch "${FETCH_URI}/${PART}" ${COMMIT_ID} > git-r3_checkout "${FETCH_URI}/${PART}" ${S}/drivers/$PART > > #LLVM. At this moment we had to download appropriate source code to build amdvlk. > PART="llvm-project" > COMMIT_ID="a163b38723cbc05f3014d4eaa1936c82bbfbf3ea" > git-r3_fetch "${FETCH_URI}/${PART}" ${COMMIT_ID} > git-r3_checkout "${FETCH_URI}/${PART}" ${S}/drivers/$PART > > PART="MetroHash" > COMMIT_ID="2b6fee002db6cc92345b02aeee963ebaaf4c0e2f" > git-r3_fetch "${FETCH_URI}/${PART}" ${COMMIT_ID} > git-r3_checkout "${FETCH_URI}/${PART}" ${S}/drivers/third_party/metrohash > > PART="CWPack" > COMMIT_ID="b601c88aeca7a7b08becb3d32709de383c8ee428" > git-r3_fetch "${FETCH_URI}/${PART}" ${COMMIT_ID} > git-r3_checkout "${FETCH_URI}/${PART}" ${S}/drivers/third_party/cwpack >} > >src_prepare() { > cat << EOF > "${T}/10-amdvlk-dri3.conf" || die >Section "Device" >Identifier "AMDgpu" >Option "DRI" "3" >EndSection >EOF > default >} > >multilib_src_configure() { > local myconf=() > > cd "${S}/drivers/xgl" > myconf+=( -B${BUILD_DIR} ) > if use debug; then > myconf+=( -DCMAKE_BUILD_TYPE=Debug ) > fi > cmake -H. "${myconf[@]}" > > if use wayland; then > myconf+=( -DBUILD_WAYLAND_SUPPORT=ON ) > fi >} > > >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}/drivers/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}/drivers/AMDVLK/json/Redhat/amd_icd32.json > fi > einfo "json files installs to /usr/share/vulkan/icd.d instead of /etc because it shouldn't honor config-protect" >} > >multilib_src_install_all(){ > insinto /usr/share/X11/xorg.conf.d/ > doins ${T}/10-amdvlk-dri3.conf > einfo "AMDVLK Requires DRI3 so istalled /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 following line is NOT included in the any Xorg configuration section: " > ewarn "Driver \"modesetting\"" > ewarn "With some games AMDVLK is still not stable. Use it at you own risk" > ewarn "You may want to disable package.use media-libs/mesa -vulkan" > ewarn "or perform export via /etc/env.d/ variable VK_ICD_FILENAMES=vulkanprovidername " > ewarn "exampe| VK_ICD_FILENAMES=\"/usr/share/vulkan/icd.d/amd_icd64.json:/usr/share/vulkan/icd.d/amd_icd64.json\"" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 665590
:
546452
|
568396
|
569532
|
569594
|
569596
|
569782
|
574406
|
577564
|
580416
|
583170
|
588514
|
589348
|
589350
|
600168
|
600538
|
602472
|
602474
|
602952
|
602954
|
602958
|
613950
|
614232
|
614828
|
616780
|
617028
|
630450
|
630452
|
790097
|
790100
|
790103
|
790106
|
790109
|
790112
|
792710