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.
This commit is contained in:
Marius Bakke 2021-12-15 18:24:17 +01:00
parent 745d6cb7d3
commit fdd71babc7
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -669,6 +669,10 @@ (define-public ungoogled-chromium
(("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 @@ (define-public ungoogled-chromium
"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 @@ (define-public ungoogled-chromium
("udev" ,eudev)
("valgrind" ,valgrind)
("vulkan-headers" ,vulkan-headers)
("vulkan-loader" ,vulkan-loader)
("wayland" ,wayland)
("xdg-utils" ,xdg-utils)))
(native-search-paths