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>
%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
%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
-Ddri-drivers="" \
-Dvulkan-drivers=""
%else
-Ddri-drivers="" \
-Dvulkan-drivers=""
%else
+%if "%{USE_VULKAN}" == "1"
+ -Dvulkan-drivers="broadcom" \
+%endif
-Dgallium-drivers="vc4,v3d,kmsro,swrast"
%endif
ninja -C build/
-Dgallium-drivers="vc4,v3d,kmsro,swrast"
%endif
ninja -C build/
%{_libdir}/driver/*
%{_libdir}/dri/*
%{_libdir}/libgbm*
%{_libdir}/driver/*
%{_libdir}/dri/*
%{_libdir}/libgbm*
+%if "%{USE_VULKAN}" == "1"
+%{_libdir}/libvulkan*
+/usr/share/vulkan/icd.d/*
+%endif
%{_udevrulesdir}/99-GPU-Acceleration.rules
%{_udevrulesdir}/99-GPU-Acceleration.rules