Code cleanup: deduplicate some branched and split kernel code.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 13 Sep 2017 00:10:24 +0000 (02:10 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 13 Sep 2017 13:24:14 +0000 (15:24 +0200)
commitf77cdd1d59f6e895b567c4d5fdcc6f2440e03307
tree2e275e1fc3c6348aa9907b62cc943a0eb0cc36d3
parentc4c450045d072c79d02a1857f56ecf94689375c8
Code cleanup: deduplicate some branched and split kernel code.

Benchmarks peformance on GTX 1080 and RX 480 on Linux is the same for
bmw27, classroom, pabellon, and about 2% faster on fishy_cat and koro.
intern/cycles/kernel/kernel_emission.h
intern/cycles/kernel/kernel_passes.h
intern/cycles/kernel/kernel_path.h
intern/cycles/kernel/kernel_path_branched.h
intern/cycles/kernel/kernel_path_volume.h
intern/cycles/kernel/kernel_shader.h
intern/cycles/kernel/split/kernel_direct_lighting.h
intern/cycles/kernel/split/kernel_holdout_emission_blurring_pathtermination_ao.h
intern/cycles/kernel/split/kernel_indirect_background.h
intern/cycles/kernel/split/kernel_lamp_emission.h
intern/cycles/kernel/split/kernel_scene_intersect.h