New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chromium: Enable swiftshader by default. #83304
chromium: Enable swiftshader by default. #83304
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff LGTM. Could you also test if it works as expected?
Building just completed. The
As expected, the package is slightly larger (5 MB):
@primeos Yes. It works: Launching with and webgl works but is slow (as Swiftshader software rendering is now in effect). That is in contrast to current NixOS, where I've also checked that it works with full hardware acceleration as usual when |
This makes it possible to use chromium headless with WebGL (e.g. for webdriver tests) without having to rebuild from source. The upstram default is to enable, thus simply removing our disabling switch. Also fixes NixOS#41918.
3b66dd7
to
015bb28
Compare
I have now also re-built it with that change pushed, still works. Ready to merge from my side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for this enhancement and especially for the testing and detailed post of the results, that helps a lot! ❤️
I've made a tentative backport to 20.03 in #83562. |
Motivation for this change
This makes it possible to use chromium headless with WebGL
(e.g. for webdriver tests) without having to rebuild from source.
Also fixes #41918.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)CC @bendlas from relevant issues/PRs/commits: