Files
test/intern
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
..
2014-07-01 09:36:28 +10:00
2015-04-13 22:08:51 +10:00
2015-03-19 15:41:41 +11:00
2014-11-13 15:30:32 +01:00
2014-07-18 11:55:59 +10:00
2014-03-22 14:41:38 +02:00
2014-10-07 15:47:32 -05:00
2014-10-07 15:47:32 -05:00