diff options
author | Marius Bakke <mbakke@fastmail.com> | 2019-06-29 23:23:59 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2019-06-29 23:23:59 +0200 |
commit | 6e1f8d552b73e508bba47dedb5676ce5ccdcc398 (patch) | |
tree | 952a8fa2652ad26946100707311824b8c7a88768 /gnu/packages/gl.scm | |
parent | c24b896365ebf0c783140e53e000305e682d18c5 (diff) | |
parent | 8e92d5465fc154fed5d06f7e4a64d7dcccded74d (diff) | |
download | guix-6e1f8d552b73e508bba47dedb5676ce5ccdcc398.tar.gz |
Merge branch 'master' into staging
Diffstat (limited to 'gnu/packages/gl.scm')
-rw-r--r-- | gnu/packages/gl.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm index f0454a6fe3..cd82b17d15 100644 --- a/gnu/packages/gl.scm +++ b/gnu/packages/gl.scm @@ -414,6 +414,31 @@ 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-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) |