GNU bug report logs -
#64528
[PATCH] gnu: mesa: Fix Vulkan on older Intel GPUs.
Previous Next
Reported by: Lilah Tascheter <lilah <at> lunabee.space>
Date: Sat, 8 Jul 2023 05:18:02 UTC
Severity: normal
Tags: patch
Done: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 64528 <at> debbugs.gnu.org (full text, mbox):
Mesa split the Vulkan intel driver into two: intel and intel_hasvk.
Enables intel_hasvk so vulkan functions on older intel GPUs again, and
swrast for lavapipe as a fallback.
* gnu/packages/gl.scm (mesa-vulkan-hasvk): New variable.
(mesa): Graft with mesa-vulkan-hasvk.
---
gnu/packages/gl.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 9885bde712..1691086e1a 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -279,6 +279,7 @@ (define-public mesa
(base32
"1mcjf41x2bhxs6yxars7nh2vfryfw50g6rvbcfbb1wqdv2jn4qrq"))))
(build-system meson-build-system)
+ (replacement mesa-vulkan-hasvk)
(propagated-inputs
;; The following are in the Requires.private field of gl.pc.
(list libdrm
@@ -526,6 +527,21 @@ (define-public mesa
from software emulation to complete hardware acceleration for modern GPUs.")
(license license:x11)))
+(define mesa-vulkan-hasvk
+ (let ((graft mesa)
+ (vulk "-Dvulkan-drivers=intel,amd"))
+ (package
+ (inherit graft)
+ (arguments
+ (substitute-keyword-arguments (package-arguments graft)
+ ((#:configure-flags flags)
+ #~(begin
+ (use-modules (ice-9 match))
+ (map (match-lambda
+ (#$vulk (string-append #$vulk ",intel_hasvk,swrast"))
+ (x x))
+ #$flags))))))))
+
(define-public mesa-opencl
(package/inherit mesa
(name "mesa-opencl")
base-commit: 3db685cb2e2ce2a4b29c62d28a66201b2eba018f
--
2.40.1
This bug report was last modified 1 year and 358 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.