summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2019-06-24 15:47:32 +0200
committerRicardo Wurmus <rekado@elephly.net>2019-06-26 16:24:58 +0200
commit37cb4e5b8ebea5bc097730a0476bab8d19d5a15b (patch)
tree8470b27023dde6d192118d31322f965a478c9a30 /gnu
parentfae429424603326a69a2e428c0b61ccbe2520bb5 (diff)
downloadguix-37cb4e5b8ebea5bc097730a0476bab8d19d5a15b.tar.gz
gnu: Add mesa-opencl-icd.
* gnu/packages/gl.scm (mesa-opencl-icd): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/gl.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 4d3828ebc2..99d2ec6cdb 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -414,6 +414,16 @@ from software emulation to complete hardware acceleration for modern GPUs.")
      `(("clang" ,clang)
        ,@(package-native-inputs mesa)))))
 
+(define-public mesa-opencl-icd
+  (package
+    (inherit mesa-opencl)
+    (name "mesa-opencl-icd")
+    (arguments
+     (substitute-keyword-arguments (package-arguments mesa)
+       ((#:configure-flags flags)
+        `(cons "-Dgallium-opencl=icd"
+               ,(delete "-Dgallium-opencl=standalone" flags)))))))
+
 (define-public mesa-headers
   (package
     (inherit mesa)