blender/intern/cycles
Sergey Sharybin ae7d84dbc1 Cycles: Use native saturate function for CUDA
This more a workaround for CUDA optimizer which can't optimize clamp(x, 0, 1)
into a single instruction and uses 4 instructions instead.

Original patch by @lockal with own modification:

  Don't make changes outside of the kernel. They don't make any difference
  anyway and term saturate() has a bit different meaning outside of kernel.

This gives around 2% of speedup in Barcelona file, but in more complex shader
setups with lots of math nodes with clamping speedup could be much nicer.

Subscribers: dingto

Projects: #cycles

Differential Revision: https://developer.blender.org/D1224
2015-04-28 00:38:32 +05:00
..
app Fix compilation of cycles network server when logging is enabled 2015-03-29 22:22:53 +02:00
blender Cycles: Add Mirror ball mapping to camera panorama options 2015-04-25 23:51:56 +02:00
bvh Cycles: Split BVH nodes storage into inner and leaf nodes 2015-04-20 17:29:51 +05:00
cmake Cycles: Post-reintegration tweaks to ensure things do compile 2015-01-01 01:31:08 +05:00
device Cycles: Fix compilation error on windows after recent logging changes 2015-04-10 22:35:10 +05:00
doc Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
kernel Cycles: Use native saturate function for CUDA 2015-04-28 00:38:32 +05:00
render Cycles: Use native saturate function for CUDA 2015-04-28 00:38:32 +05:00
subd Cycles: Code cleanup, spaces around keywords 2015-03-28 00:15:15 +05:00
util Cycles: Use native saturate function for CUDA 2015-04-28 00:38:32 +05:00
CMakeLists.txt Optionally use c++11 stuff instead of boost in cycles where possible. We do and continue to depend on boost though 2015-03-29 22:12:40 +02:00
SConscript Optionally use c++11 stuff instead of boost in cycles where possible. We do and continue to depend on boost though 2015-03-29 22:12:40 +02:00