Fix T48732: New GGX breaks OpenCL kernel
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 28 Jun 2016 12:11:17 +0000 (17:11 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 28 Jun 2016 12:15:35 +0000 (17:15 +0500)
commit23cc453975c42069bac21e849b1bf7e3e60cd8e7
tree07fbddad78a0c4723dc7e51d849987eef7ccc4ed
parent0d7817d1a46adebdad4cb68ea54169720e86068d
Fix T48732: New GGX breaks OpenCL kernel

Make sure we don't perform any implicit address space conversion.

A bit annoying, but less intrusive approaches (like using temp private
variable in .cl kernel) do not work correct here.

Using generic address space will help from code side here, but will
be somewhat slower due to extra things happening as far as i know.
intern/cycles/kernel/closure/bsdf_microfacet_multi_impl.h
intern/cycles/kernel/kernel_random.h
intern/cycles/kernel/kernel_shader.h