summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTianhao Ni <tianhao.ni@samsung.com>2021-05-10 10:26:31 +0800
committerXuelian Bai <xuelian.bai@samsung.com>2024-01-18 09:31:55 +0800
commitd7c8d2cb127866063284b40e07127a8c627c748b (patch)
treecdeff64c7b942359edf45a0e09cf27b85d9d9d27
parentac8a21b3f79ef34b37fd2c071df8467b11a83e51 (diff)
downloadmesa-d7c8d2cb127866063284b40e07127a8c627c748b.tar.gz
mesa-d7c8d2cb127866063284b40e07127a8c627c748b.tar.bz2
mesa-d7c8d2cb127866063284b40e07127a8c627c748b.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.spec9
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
index fd5230bd3f2..b40395be873 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