diff options
author | Tianhao Ni <tianhao.ni@samsung.com> | 2021-05-10 10:26:31 +0800 |
---|---|---|
committer | SooChan Lim <sc1.lim@samsung.com> | 2021-05-13 02:24:55 +0000 |
commit | 2c2397a5278c79f32afb0a148f80bac17ed85264 (patch) | |
tree | 5585a47512e82e4046be53e8ff21632bb8f40661 | |
parent | 6a4070d54bd9a72d58227a113b372d8c0c742bc6 (diff) | |
download | mesa-2c2397a5278c79f32afb0a148f80bac17ed85264.tar.gz mesa-2c2397a5278c79f32afb0a148f80bac17ed85264.tar.bz2 mesa-2c2397a5278c79f32afb0a148f80bac17ed85264.zip |
Enable vulkan support for mesa:
1. Set "USE_VULKAN" to 1 in spec file to enable vulkan support.
Change-Id: I15e9c8a70f88ffc595d8f4a4ffb37d99e9bf214d
Signed-off-by: Tianhao Ni <tianhao.ni@samsung.com>
-rw-r--r-- | packaging/mesa.spec | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec index d8571068df4..52b817a24b3 100644 --- a/packaging/mesa.spec +++ b/packaging/mesa.spec @@ -36,6 +36,8 @@ BuildRequires: pkgconfig(libdrm_intel) >= 2.4.24 ExclusiveArch: %endif +%define USE_VULKAN 0 + %description Mesa is a 3-D graphics library with an API which is very similar to that of OpenGL.* To the extent that Mesa utilizes the OpenGL command @@ -76,6 +78,9 @@ meson --prefix %{_prefix} build/ \ -Ddri-drivers="" \ -Dvulkan-drivers="" %else +%if "%{USE_VULKAN}" == "1" + -Dvulkan-drivers="broadcom" \ +%endif -Dgallium-drivers="vc4,v3d,kmsro,swrast" %endif ninja -C build/ @@ -101,4 +106,8 @@ cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir} %{_libdir}/driver/* %{_libdir}/dri/* %{_libdir}/libgbm* +%if "%{USE_VULKAN}" == "1" +%{_libdir}/libvulkan* +/usr/share/vulkan/icd.d/* +%endif %{_udevrulesdir}/99-GPU-Acceleration.rules |