summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2023-04-03 18:17:11 +0200
committerSam James <sam@gentoo.org>2023-04-16 03:45:58 +0100
commit7f572b9f9d71cce259aa40e839764ed318ae7b8f (patch)
tree0767961064a1b8caff54d2f0dc8662c902cde32e /media-gfx
parentmedia-gfx/blender: Update live ebuild (diff)
downloadgentoo-7f572b9f9d71cce259aa40e839764ed318ae7b8f.tar.gz
gentoo-7f572b9f9d71cce259aa40e839764ed318ae7b8f.tar.bz2
gentoo-7f572b9f9d71cce259aa40e839764ed318ae7b8f.zip
media-gfx/blender: Add "cycles-bin-kernels" useflag
This useflag enables precompiling the cycles render kernels at compile time. This makes it so that the user doesn't have to wait for the kernels to compile when they are used for the first time. Signed-off-by: Sebastian Parborg <darkdefende@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/blender/blender-9999.ebuild3
-rw-r--r--media-gfx/blender/metadata.xml5
2 files changed, 7 insertions, 1 deletions
diff --git a/media-gfx/blender/blender-9999.ebuild b/media-gfx/blender/blender-9999.ebuild
index 73275c6a9326..1ae2234b408e 100644
--- a/media-gfx/blender/blender-9999.ebuild
+++ b/media-gfx/blender/blender-9999.ebuild
@@ -26,7 +26,7 @@ fi
SLOT="${PV%.*}"
LICENSE="|| ( GPL-3 BL )"
IUSE="+bullet +dds +fluid +openexr +tbb \
- alembic collada +color-management cuda +cycles \
+ alembic collada +color-management cuda +cycles cycles-bin-kernels \
debug doc +embree +ffmpeg +fftw +gmp jack jemalloc jpeg2k \
man +nanovdb ndof nls openal +oidn +openimageio +openmp +opensubdiv \
+openvdb optix +osl +pdf +potrace +pugixml pulseaudio sdl +sndfile \
@@ -237,6 +237,7 @@ src_configure() {
-DWITH_CODEC_SNDFILE=$(usex sndfile)
-DWITH_CXX_GUARDEDALLOC=$(usex debug)
-DWITH_CYCLES=$(usex cycles)
+ -DWITH_CYCLES_CUDA_BINARIES=$(usex cycles-bin-kernels)
-DWITH_CYCLES_DEVICE_CUDA=$(usex cuda TRUE FALSE)
-DWITH_CYCLES_DEVICE_OPTIX=$(usex optix)
-DWITH_CYCLES_EMBREE=$(usex embree)
diff --git a/media-gfx/blender/metadata.xml b/media-gfx/blender/metadata.xml
index 41cc89220a5f..dcb3cb492150 100644
--- a/media-gfx/blender/metadata.xml
+++ b/media-gfx/blender/metadata.xml
@@ -37,6 +37,11 @@
Build cycles renderer (requires <pkg>media-libs/openimageio</pkg> and
<pkg>dev-libs/boost</pkg>).
</flag>
+ <flag name="cycles-bin-kernels">
+ Precompile the cycles render kernels for the CUDA/HIP/OneAPI backends, if they are enabled, at compile time.
+ This makes it so that the user doesn't have to wait for the kernels to compile when they are used for the first time in Blender.
+ If this option is not on, they will be built as needed at runtime.
+ </flag>
<flag name="dds">
Adds DDS textures support to Blender.
</flag>