guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/13: gnu: ungoogled-chromium: Improve Vulkan support.


From: guix-commits
Subject: 03/13: gnu: ungoogled-chromium: Improve Vulkan support.
Date: Thu, 16 Dec 2021 16:23:11 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit fdd71babc73a3e5706f6d0c7aed579971109cf3e
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed Dec 15 18:24:17 2021 +0100

    gnu: ungoogled-chromium: Improve Vulkan support.
    
    * gnu/packages/chromium.scm (ungoogled-chromium)[arguments]: Add absolute
    reference to libvulkan.so.1.  Install SwiftShader support files.
    [inputs]: Add VULKAN-LOADER.
---
 gnu/packages/chromium.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/chromium.scm b/gnu/packages/chromium.scm
index 1a9a35e..263f46a 100644
--- a/gnu/packages/chromium.scm
+++ b/gnu/packages/chromium.scm
@@ -669,6 +669,10 @@
                  (("libudev\\.so\\.1")
                   (string-append udev "/lib/libudev.so.1")))
 
+               (substitute* 
"third_party/dawn/src/dawn_native/vulkan/BackendVk.cpp"
+                 (("libvulkan\\.so\\.1")
+                  (search-input-file inputs "/lib/libvulkan.so.1")))
+
                (substitute*
                    '("ui/ozone/platform/x11/gl_ozone_glx.cc"
                      "ui/ozone/common/egl_util.cc"
@@ -766,6 +770,10 @@
                                       "resources.pak"
                                       "v8_context_snapshot.bin"
 
+                                      ;; Swiftshader ICD.
+                                      "libvk_swiftshader.so"
+                                      "vk_swiftshader_icd.json"
+
                                       ;; Chromium ships its own libGL
                                       ;; implementation called ANGLE.
                                       "libEGL.so" "libGLESv2.so"))
@@ -894,6 +902,7 @@
        ("udev" ,eudev)
        ("valgrind" ,valgrind)
        ("vulkan-headers" ,vulkan-headers)
+       ("vulkan-loader" ,vulkan-loader)
        ("wayland" ,wayland)
        ("xdg-utils" ,xdg-utils)))
     (native-search-paths



reply via email to

[Prev in Thread] Current Thread [Next in Thread]