Cycles: Tag shaders for update after the threading part is over
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 4 Apr 2017 11:36:58 +0000 (13:36 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 4 Apr 2017 13:43:12 +0000 (15:43 +0200)
commit92aeb84fde6402c0d2e337b030c06cfd171f5ba1
tree8b61c241d23c3591f30de4a899dbb7dcbf613967
parent7b149bfde649e178ab8710702f1f0157bff2ef7e
Cycles: Tag shaders for update after the threading part is over

This avoids write access happening in non-atomic manner in
Shader::tag_update which modifies the global managers. Even
for 1 byte data types it's quite dangerous.
intern/cycles/blender/blender_shader.cpp
intern/cycles/blender/blender_sync.h