Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 770103 - media-gfx/blender: Embree support
Summary: media-gfx/blender: Embree support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Adrian
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-11 16:49 UTC by Jasen Borisov
Modified: 2021-06-16 22:48 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jasen Borisov 2021-02-11 16:49:42 UTC
Blender upstream added support (in 2.90) for using Intel's Embree ray-tracing library to improve rendering performance. There is currently no way to enable this in Gentoo.

Intel's Embree is not available as an ebuild in gentoo yet, so that would need to be tackled first. Then, we can add it as an optional dependency behind a USE flag.

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2021-02-11 17:04:46 UTC
If this goes forward, given media-libs/embree exists in ::waebbl's overlay maybe would be interested in bringing it to ::gentoo, CC'ing in case.
Comment 2 Bernd 2021-02-11 19:09:47 UTC
The blender maintainer also has embree in it's overlay and was experimenting with it. Maybe, he's still waiting for an usd ebuild, which I promised to look at, but haven't had the time yet to get more into it.

The embree ebuild in my overlay is slightly newer (3.12.2) than Adrian's one (3.12.1) but the current version is based on his ebuild.

Maybe we should ping him too and ask about his opinion. I guess, we could use either of the two ebuilds.

There were some issues with using embree, as blender was requiring a very specific combination of flags for embree and also a static library. But this was with early or beta 2.90 releases, however, I don't know what's current state of this.
Comment 3 Adrian 2021-02-12 13:36:07 UTC
I have been testing embree with blender and you can use https://github.com/redchillipadi/ebuild-overlay/blob/master/media-gfx/blender/blender-2.91.0.ebuild from my repository along with my embree ebuild if you want to try it out.

It seems to work for me, but there are a two things I want to check before submitting it.

To enable embree with blender, it must be compiled with tbb,static-libs,raymask,-ispc,-tutorial as given by blender's install-deps --show-deps command. I am not entirely sure that excluding tutorial is necessary but enabling ispc certainly breaks it.

Embree upstream also allows specification of the SSE, AVX, AVX2, and AVX-512 instruction sets to build against, rather than the default to build for all of them, and I would like to get this to be taken automatically from cpuflags. However when I added use flags to limit the instruction sets the build fails to work. I think blender links just against AVX2, but I haven't been able to get it working when I only build with this instruction set.

Once I have sorted these out, I will update and submit the latest version. As my ebuild was originally from Bernd, I suspect recombining our implementations will not be too difficult.

However at the moment I am prioritising adding support for blender and other graphics libraries in Gentoo to build against the exact GPU architecture required to add support for the latest graphics card features, and also allow CUDA to support older GPUs
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-16 22:48:22 UTC
Fixed already in https://github.com/gentoo/gentoo/pull/20565.

See the work in: 
bug 795003
bug 778008
bug 774372
bug 673422
bug 737388