[Bf-blender-cvs] [20191980f49] master: Cycles: increase volume stack to support 32 overlapping volumes.

Brecht Van Lommel noreply at git.blender.org
Thu Jul 19 00:34:27 CEST 2018


Commit: 20191980f49dd8d348c1065461060963b15ea64b
Author: Brecht Van Lommel
Date:   Wed Jul 18 22:58:52 2018 +0200
Branches: master
https://developer.blender.org/rB20191980f49dd8d348c1065461060963b15ea64b

Cycles: increase volume stack to support 32 overlapping volumes.

This increases stack memory usage some, and ideally we'd support a dynamic
size. But this is quite difficult on the GPU and hopefully 32 is enough even
for very complex cases.

===================================================================

M	intern/cycles/kernel/kernel_types.h

===================================================================

diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h
index 69ee66b3dd5..85548484873 100644
--- a/intern/cycles/kernel/kernel_types.h
+++ b/intern/cycles/kernel/kernel_types.h
@@ -54,7 +54,7 @@ CCL_NAMESPACE_BEGIN
 #define PRIM_NONE				(~0)
 #define LAMP_NONE				(~0)
 
-#define VOLUME_STACK_SIZE		16
+#define VOLUME_STACK_SIZE		32
 
 /* Split kernel constants */
 #define WORK_POOL_SIZE_GPU 64



More information about the Bf-blender-cvs mailing list