chromium: Install vk_swiftshader_icd.json
This should be required for Vulkan support via SwiftShader but I wasn't
able to test/confirm it yet (according to strace Chromium never tried to
load that file). The relevant flags for using Chromium with SwiftShader
are documented at [0] and SwiftShader's ANGLE documentation [1] mentions
the relevant files. See also [2], [3], and [4] for more details.
[0]: https://source.chromium.org/chromium/chromium/src/+/master:docs/gpu/swiftshader.md;drc=046f987e020baba45ffb3061b3ee3d960d6ce981
[1]: https://github.com/google/swiftshader/blob/241349107851000f6a48c3d5769ed617785c8962/docs/ANGLE.md
[2]: https://github.com/google/swiftshader/blob/241349107851000f6a48c3d5769ed617785c8962/README.md
[3]: https://github.com/KhronosGroup/Vulkan-Loader/blob/ca9efe3f1ccd98a5fe05da71bf65087bcaa82f35/docs/LoaderInterfaceArchitecture.md
[4]: https://bugs.archlinux.org/task/72652
commit66352e3ee4b02927a57b708c32b8314b9df0d948
authorMichael Weiss <dev.primeos@gmail.com>
dateTue 16 Nov 2021, 22:04 (5 years ago)
parent552d420
pkgs/applications/networking/browsers/chromium/browser.nix+1
@@ -17,6 +17,7 @@ mkChromiumDerivation (base: rec {
1717 installPhase = ''
1818 mkdir -p "$libExecPath"
1919 cp -v "$buildPath/"*.so "$buildPath/"*.pak "$buildPath/"*.bin "$libExecPath/"
20+ cp -v "$buildPath/vk_swiftshader_icd.json" "$libExecPath/"
2021 cp -v "$buildPath/icudtl.dat" "$libExecPath/"
2122 cp -vLR "$buildPath/locales" "$buildPath/resources" "$libExecPath/"
2223 cp -v "$buildPath/chrome_crashpad_handler" "$libExecPath/"