From: Lilah Tascheter via Guix-patches via <guix-patches@gnu.org>
To: 64528@debbugs.gnu.org
Cc: Lilah Tascheter <lilah@lunabee.space>,
liliana.prikler@gmail.com, iyzsong@envs.net
Subject: [bug#64528] [PATCH v2] gnu: mesa: Fix Vulkan on older Intel GPUs.
Date: Sat, 8 Jul 2023 13:29:28 -0500 [thread overview]
Message-ID: <f7a23886dab4f37001f1be105b49e786665dd5c6.1688840955.git.lilah@lunabee.space> (raw)
In-Reply-To: <60cf22ecd3b501d0c75dab931f1d018f4dd23843.1688793383.git.lilah@lunabee.space>
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
next prev parent reply other threads:[~2023-07-08 18:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-08 5:16 [bug#64528] [PATCH] gnu: mesa: Fix Vulkan on older Intel GPUs Lilah Tascheter via Guix-patches via
2023-07-08 15:46 ` Liliana Marie Prikler
2023-07-08 18:29 ` Lilah Tascheter via Guix-patches via [this message]
2023-07-16 7:26 ` bug#64528: [PATCH v2] " Liliana Marie Prikler
2023-07-16 18:06 ` [bug#64528] " John Kehayias via Guix-patches via
2023-07-16 18:28 ` Liliana Marie Prikler
2023-07-25 21:25 ` John Kehayias via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7a23886dab4f37001f1be105b49e786665dd5c6.1688840955.git.lilah@lunabee.space \
--to=guix-patches@gnu.org \
--cc=64528@debbugs.gnu.org \
--cc=iyzsong@envs.net \
--cc=lilah@lunabee.space \
--cc=liliana.prikler@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).