Primus is a replacement of virtualgl with lower overhead, lower power comsumption and higher efficiency. bumblebee should add optional dependency that let users use primus instead of virtualgl. Primus: https://github.com/amonakov/primus
Valve recommends primus. At least Dota only runs with primusrun, not with optirun.
Created attachment 430866 [details] bumblebee-3.2.1-r1.ebuild
Created attachment 430868 [details] files/bumblebee.initd
Created attachment 430870 [details] files/bumblebee.initd.virtualgl
Quick hack to the existing ebuild, adds two new USE flags primus and virtualgl one of which must be selected. One of the two init.d files is pulled in as appropriate as when using primus there are no service dependencies like with virtualgl.
I'd like to make sure we aren't re-inventing the wheel here. https://github.com/Bumblebee-Project/bumblebee-gentoo This isn't meant to squelch an effort to get the bumblebee related packages into the main repo, but I'd rather not subvert that effort.
Moreover, it looks like Primus hasn't made a release since 2012. Which means any ebuild you make will have to be a snapshot ebuild.
Why subvert the effort? Is glvnd making bumblebee/primus obsolete?
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f61c4613f58d92bed8670f63745b18606c43a55 Done.