[packages/Mesa/Mesa-18.3] re-enable OpenCL

jajcus jajcus at pld-linux.org
Mon Dec 17 14:51:41 CET 2018


commit 07725da068a7465de592ca97f47e521a2eb8a9ba
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Mon Dec 17 08:39:31 2018 +0100

    re-enable OpenCL

 Mesa.spec | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/Mesa.spec b/Mesa.spec
index 923692d..3b460bd 100644
--- a/Mesa.spec
+++ b/Mesa.spec
@@ -6,7 +6,8 @@
 %bcond_without	egl		# EGL libraries
 %bcond_without	gbm		# Graphics Buffer Manager
 %bcond_without	nine		# Nine Direct3D 9+ state tracker (for Wine)
-%bcond_with	opencl		# OpenCL support (requires LLVM with RTTI)
+%bcond_without	opencl		# OpenCL support
+%bcond_without  ocl_icd         # OpenCL as ICD (installable client driver)
 %bcond_with	glvnd		# OpenGL vendor neutral dispatcher support
 %bcond_without	omx		# OpenMAX (Bellagio OMXIL) support
 %bcond_without	va		# VA library
@@ -44,6 +45,10 @@
 %undefine	with_wayland
 %endif
 
+%if %{without opencl}
+%undefine	with_ocl_icd
+%endif
+
 Summary:	Free OpenGL implementation
 Summary(pl.UTF-8):	Wolnodostępna implementacja standardu OpenGL
 Name:		Mesa
@@ -1231,7 +1236,15 @@ vulkan_drivers=$(echo $vulkan_drivers | xargs | tr ' ' ',')
 	-Dva-libs-path=%{_libdir}/libva/dri \
 	-Dgallium-xa=%{?with_xa:true}%{?!with_xa:false} \
 	-Dgallium-nine=%{?with_nine:true}%{?!with_nine:false} \
-	-Dgallium-opencl=%{?with_opencl:icd}%{?!with_opencl:disabled} \
+%if %{with opencl}
+%if %{with ocl_icd}
+	-Dgallium-opencl=icd \
+%else
+	-Dgallium-opencl=standalone \
+%endif
+%else
+	-Dgallium-opencl=disabled \
+%endif
 	-Dvulkan-drivers=${vulkan_drivers} \
 	-Dvulkan-icd-dir=/usr/share/vulkan/icd.d \
 	-Dgbm=%{?with_gbm:true}%{?!with_gbm:false} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/Mesa.git/commitdiff/07725da068a7465de592ca97f47e521a2eb8a9ba



More information about the pld-cvs-commit mailing list