summary refs log tree commit diff
path: root/gnu/packages/gl.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2019-06-24 14:27:52 +0200
committerRicardo Wurmus <rekado@elephly.net>2019-06-26 16:24:58 +0200
commitfae429424603326a69a2e428c0b61ccbe2520bb5 (patch)
tree7729161ad719a1d6ab3508eb60bc1c2459b906be /gnu/packages/gl.scm
parenta2cc25ab9634a6ac12e6e2ae2b73cd695b071c55 (diff)
downloadguix-fae429424603326a69a2e428c0b61ccbe2520bb5.tar.gz
gnu: Add mesa-opencl.
* gnu/packages/gl.scm (mesa-opencl): New variable.
Diffstat (limited to 'gnu/packages/gl.scm')
-rw-r--r--gnu/packages/gl.scm15
1 files changed, 15 insertions, 0 deletions
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 96e7fc7165..4d3828ebc2 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -399,6 +399,21 @@ device drivers allows Mesa to be used in many different environments ranging
 from software emulation to complete hardware acceleration for modern GPUs.")
     (license license:x11)))
 
+(define-public mesa-opencl
+  (package
+    (inherit mesa)
+    (name "mesa-opencl")
+    (arguments
+     (substitute-keyword-arguments (package-arguments mesa)
+       ((#:configure-flags flags)
+        `(cons "-Dgallium-opencl=standalone" ,flags))))
+    (inputs
+     `(("libclc" ,libclc)
+       ,@(package-inputs mesa)))
+    (native-inputs
+     `(("clang" ,clang)
+       ,@(package-native-inputs mesa)))))
+
 (define-public mesa-headers
   (package
     (inherit mesa)