Blender Git Commit Log

Git Commits -> Revision e607105

September 14, 2016, 08:26 (GMT)
Cycles: Fix OpenCL speed regression introduced with the improved bump mapping

The two SVM nodes added with e7ea1ae78c caused a slowdown on AMD cards when rendering with OpenCL, whether displacement was used or not.
In the Barcelona Pavillon scene on a RX480, this would cause a 12% slowdown.

Therefore, this commit adds a additional flag for feature-adaptive compilation so that the new SVM nodes are only enabled when they are needed (Node tree connected to the Displacement output and Displacement type set to Both).

Also, the nodes were also added to shaders when the Displacement Type was set to Bump (the default), which was unneccessary and is fixed now.

Thanks to linda2 on IRC for reporting and testing and to maiself for help with the displacement shader code.

This fix might be relevant for 2.78, but it should be tested further before including it.

Commit Details:

Full Hash: e6071056a402e027f9a23c1fe7bbd3dae1babfed
Parent Commit: 4929de9
Committed By: Sergey Sharybin
Lines Changed: +10, -3

4 Modified Paths:

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