Blender Git Commit Log

Git Commits -> Revision 7cc3243

Revision 7cc3243 by Brecht Van Lommel (cycles-x)
May 5, 2021, 12:18 (GMT)
Fix Cycles X crash using a BSDF in a light shader

* Move BSDF feature test so the right offset is applied
* Exclude BSDFs from volume shaders, and volumes from surface shaders,
to prevent a similar issues.

It would be most efficient to exclude BSDFs entirely from light shaders, but
this is difficult since Cycles does not make a distinction. A shader can be used
by both a Mesh and Light and is compiled only once. We do make a distinction
between surface/volume/displacement shaders, so for that case we can ignore
the node during shader compilation.

Differential Revision: https://developer.blender.org/D11164

Commit Details:

Full Hash: 7cc3243ca8d64ba472885ead655c0d779623a68b
Parent Commit: bc081c7
Lines Changed: +34, -4

6 Modified Paths:

/intern/cycles/kernel/svm/svm.h (+1, -3) (Diff)
/intern/cycles/kernel/svm/svm_closure.h (+2, -1) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+1, -0) (Diff)
/intern/cycles/render/nodes.h (+15, -0) (Diff)
/intern/cycles/render/svm.cpp (+12, -0) (Diff)
/intern/cycles/render/svm.h (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021