Change-Id: Id6304caa07807ee2cd7846fbd61b65a510ef9b90
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/20121
Tested-by: Michelle Wang <michellew@vmware.com>
Reviewed-by: Vamsi Krishna Brahmajosyula <vbrahmajosyula@vmware.com>
Reviewed-by: Shreenidhi Shedi <sshedi@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,65 @@ |
| 0 |
+Summary: AMD Open Source Driver for Vulkan |
|
| 1 |
+Name: amdvlk |
|
| 2 |
+Version: 2023.Q1.3 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: MIT |
|
| 5 |
+URL: https://github.com/GPUOpen-Drivers/AMDVLK |
|
| 6 |
+Group: System Environment/Libraries |
|
| 7 |
+Vendor: VMware, Inc. |
|
| 8 |
+Distribution: Photon |
|
| 9 |
+ |
|
| 10 |
+Source0: https://github.com/GPUOpen-Drivers/AMDVLK/archive/refs/tags/%{name}-%{version}.tar.xz
|
|
| 11 |
+%define sha512 %{name}=118c960c1a737f48095667283278d901284bdd5d6e9853759026781600decb59a81436683545063316661a11300dbc1be2b6e71cecf9968be91a31d83d09ae34
|
|
| 12 |
+ |
|
| 13 |
+BuildRequires: cmake |
|
| 14 |
+BuildRequires: ninja-build |
|
| 15 |
+BuildRequires: proto |
|
| 16 |
+BuildRequires: libxcb-devel |
|
| 17 |
+BuildRequires: libX11-devel |
|
| 18 |
+BuildRequires: wayland-devel |
|
| 19 |
+BuildRequires: libwayland-client |
|
| 20 |
+BuildRequires: libxml2-devel |
|
| 21 |
+BuildRequires: libffi-devel |
|
| 22 |
+BuildRequires: libXrandr-devel |
|
| 23 |
+BuildRequires: libXrender-devel |
|
| 24 |
+BuildRequires: libxshmfence-devel |
|
| 25 |
+ |
|
| 26 |
+%description |
|
| 27 |
+AMD Open Source Driver for Vulkan |
|
| 28 |
+ |
|
| 29 |
+%prep |
|
| 30 |
+%autosetup -p1 |
|
| 31 |
+ |
|
| 32 |
+%build |
|
| 33 |
+cmake -B %{_target_platform} \
|
|
| 34 |
+ -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF \ |
|
| 35 |
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
|
| 36 |
+ -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
|
|
| 37 |
+ -DLIB_INSTALL_DIR:PATH=%{_libdir} \
|
|
| 38 |
+ -DCMAKE_INSTALL_LIBDIR=lib \ |
|
| 39 |
+ -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
|
|
| 40 |
+ -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
|
|
| 41 |
+ -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
|
| 42 |
+ -S xgl -DLLVM_PARALLEL_LINK_JOBS=1 \ |
|
| 43 |
+ -DVKI_RAY_TRACING=OFF -Wno-dev |
|
| 44 |
+cmake --build %{_target_platform} %{?_smp_mflags} --verbose
|
|
| 45 |
+ |
|
| 46 |
+%install |
|
| 47 |
+DESTDIR=%{buildroot} cmake --install %{_target_platform} --component icd
|
|
| 48 |
+chmod +x %{buildroot}%{_libdir}/amdvlk64.so
|
|
| 49 |
+ |
|
| 50 |
+%clean |
|
| 51 |
+rm -rf %{buildroot}/*
|
|
| 52 |
+ |
|
| 53 |
+%ldconfig_scriptlets |
|
| 54 |
+ |
|
| 55 |
+%files |
|
| 56 |
+%defattr(-,root,root) |
|
| 57 |
+%{_sysconfdir}/vulkan/icd.d/amd_icd64.json
|
|
| 58 |
+%{_sysconfdir}/vulkan/implicit_layer.d/amd_icd64.json
|
|
| 59 |
+%{_libdir}/amdvlk64.so
|
|
| 60 |
+%license %{_datadir}/doc/%{name}/LICENSE.txt
|
|
| 61 |
+ |
|
| 62 |
+%changelog |
|
| 63 |
+* Thu Feb 23 2023 Shivani Agarwal <shivania2@vmware.com> - 2023.Q1.3-1 |
|
| 64 |
+- Initial version |
| ... | ... |
@@ -12,11 +12,12 @@ |
| 12 | 12 |
%define glproto_ver 1.4.17 |
| 13 | 13 |
%define xineramaproto_ver 1.2.1 |
| 14 | 14 |
%define fontsproto_ver 2.1.3 |
| 15 |
+%define dri2proto_ver 2.8 |
|
| 15 | 16 |
|
| 16 | 17 |
Summary: The Xorg protocol headers. |
| 17 | 18 |
Name: proto |
| 18 | 19 |
Version: 7.7 |
| 19 |
-Release: 4%{?dist}
|
|
| 20 |
+Release: 5%{?dist}
|
|
| 20 | 21 |
License: MIT |
| 21 | 22 |
URL: http://www.x.org |
| 22 | 23 |
Group: Development/System |
| ... | ... |
@@ -66,6 +67,9 @@ Source12: http://ftp.x.org/pub/individual/proto/xineramaproto-%{xineramaproto_ve
|
| 66 | 66 |
Source13: http://ftp.x.org/pub/individual/proto/fontsproto-%{fontsproto_ver}.tar.bz2
|
| 67 | 67 |
%define sha512 fontsproto=f46d5b733aa48644aa3aa75d4ed47231ef78cb60f747f7200d82331a1ba566190bf37b5b9926c690dec6356043ce7c85a5b59fc1b4b11667ef432518b5d4cc87 |
| 68 | 68 |
|
| 69 |
+Source14: http://ftp.x.org/pub/individual/proto/dri2proto-%{dri2proto_ver}.tar.bz2
|
|
| 70 |
+%define sha512 dri2proto=1602f58cd8a3371dacf894cde4889b9147fc08e83f98d8e0d1c748abe43ecb74cf4e0e3d5eb2f33568ba5e6d9f310303b98ba43ae3bc956ae693824b1ae0745a |
|
| 71 |
+ |
|
| 69 | 72 |
BuildRequires: pkg-config |
| 70 | 73 |
Provides: pkgconfig(xproto) |
| 71 | 74 |
|
| ... | ... |
@@ -74,7 +78,7 @@ The Xorg protocol headers provide the header files required to build the system, |
| 74 | 74 |
|
| 75 | 75 |
%prep |
| 76 | 76 |
# Using autosetup is not feasible |
| 77 |
-%setup -q -c %{name}-%{version} -a0 -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13
|
|
| 77 |
+%setup -q -c %{name}-%{version} -a0 -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14
|
|
| 78 | 78 |
|
| 79 | 79 |
%build |
| 80 | 80 |
for pkg in `ls`; do |
| ... | ... |
@@ -100,6 +104,8 @@ rm -rf %{buildroot}/*
|
| 100 | 100 |
%{_docdir}/*
|
| 101 | 101 |
|
| 102 | 102 |
%changelog |
| 103 |
+* Fri Mar 17 2023 Shivani Agarwal <shivania2@vmware.com> 7.7-5 |
|
| 104 |
+- Added dri2proto |
|
| 103 | 105 |
* Thu Sep 8 2022 Shivani Agarwal <shivania2@vmware.com> 7.7-4 |
| 104 | 106 |
- Added fixesproto, compositeproto, damageproto, recordproto, scrnsaverproto, glproto, xineramaproto, fontsproto |
| 105 | 107 |
* Tue Jul 12 2022 Shivani Agarwal <shivania2@vmware.com> 7.7-3 |