Files
test/intern/cycles/util
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
..
2015-02-19 07:15:00 +11:00
2014-12-25 02:50:24 +01:00
2014-12-25 02:50:24 +01:00
2014-12-25 02:50:24 +01:00
2014-11-08 13:37:42 +01:00
2012-11-03 14:32:13 +00:00
2014-12-25 02:50:24 +01:00
2014-12-25 02:50:24 +01:00
2014-12-25 02:50:24 +01:00