mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-24 17:35:18 +00:00
Enable rusticl as an optional OpenCL engine
This commit is contained in:
parent
03dc4bc0ef
commit
09343a95ee
1 changed files with 11 additions and 1 deletions
12
mesa.spec
12
mesa.spec
|
@ -69,7 +69,7 @@ Source1: Mesa-MLAA-License-Clarification-Email.txt
|
||||||
Patch10: 0001-Revert-glx-Guard-usage-of-infer_zink-explicit_zink-i.patch
|
Patch10: 0001-Revert-glx-Guard-usage-of-infer_zink-explicit_zink-i.patch
|
||||||
Patch11: 0002-Revert-egl-glx-add-fallback-for-zink-loading.patch
|
Patch11: 0002-Revert-egl-glx-add-fallback-for-zink-loading.patch
|
||||||
|
|
||||||
BuildRequires: meson >= 0.45
|
BuildRequires: meson >= 0.61.4
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
|
@ -122,7 +122,11 @@ BuildRequires: pkgconfig(libglvnd) >= 1.3.2
|
||||||
BuildRequires: llvm-devel >= 7.0.0
|
BuildRequires: llvm-devel >= 7.0.0
|
||||||
%if 0%{?with_opencl}
|
%if 0%{?with_opencl}
|
||||||
BuildRequires: clang-devel
|
BuildRequires: clang-devel
|
||||||
|
BuildRequires: bindgen
|
||||||
|
BuildRequires: rust-packaging
|
||||||
BuildRequires: pkgconfig(libclc)
|
BuildRequires: pkgconfig(libclc)
|
||||||
|
BuildRequires: pkgconfig(SPIRV-Tools)
|
||||||
|
BuildRequires: pkgconfig(LLVMSPIRVLib)
|
||||||
%endif
|
%endif
|
||||||
%if %{with valgrind}
|
%if %{with valgrind}
|
||||||
BuildRequires: pkgconfig(valgrind)
|
BuildRequires: pkgconfig(valgrind)
|
||||||
|
@ -350,6 +354,9 @@ cp %{SOURCE1} docs/
|
||||||
-Dgallium-xa=%{?with_xa:enabled}%{!?with_xa:disabled} \
|
-Dgallium-xa=%{?with_xa:enabled}%{!?with_xa:disabled} \
|
||||||
-Dgallium-nine=%{?with_nine:true}%{!?with_nine:false} \
|
-Dgallium-nine=%{?with_nine:true}%{!?with_nine:false} \
|
||||||
-Dgallium-opencl=%{?with_opencl:icd}%{!?with_opencl:disabled} \
|
-Dgallium-opencl=%{?with_opencl:icd}%{!?with_opencl:disabled} \
|
||||||
|
%if 0%{?with_opencl}
|
||||||
|
-Dgallium-rusticl=true -Dllvm=enabled -Drust_std=2021 \
|
||||||
|
%endif
|
||||||
-Dvulkan-drivers=%{?vulkan_drivers} \
|
-Dvulkan-drivers=%{?vulkan_drivers} \
|
||||||
-Dvulkan-layers=device-select \
|
-Dvulkan-layers=device-select \
|
||||||
-Dshared-glapi=enabled \
|
-Dshared-glapi=enabled \
|
||||||
|
@ -457,9 +464,12 @@ popd
|
||||||
%if 0%{?with_opencl}
|
%if 0%{?with_opencl}
|
||||||
%files libOpenCL
|
%files libOpenCL
|
||||||
%{_libdir}/libMesaOpenCL.so.*
|
%{_libdir}/libMesaOpenCL.so.*
|
||||||
|
%{_libdir}/libRusticlOpenCL.so.*
|
||||||
%{_sysconfdir}/OpenCL/vendors/mesa.icd
|
%{_sysconfdir}/OpenCL/vendors/mesa.icd
|
||||||
|
%{_sysconfdir}/OpenCL/vendors/rusticl.icd
|
||||||
%files libOpenCL-devel
|
%files libOpenCL-devel
|
||||||
%{_libdir}/libMesaOpenCL.so
|
%{_libdir}/libMesaOpenCL.so
|
||||||
|
%{_libdir}/libRusticlOpenCL.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?with_nine}
|
%if 0%{?with_nine}
|
||||||
|
|
Loading…
Reference in a new issue