Change some big functions from __device_inline to __device, which
makes CPU kernel compilation much faster when using MSVC. Sideeffect of this change is that CPU rendering is few percent faster now. CUDA rendering is the same speed.
This commit is contained in:
@@ -53,7 +53,7 @@ __device_noinline void shader_setup_object_transforms(KernelGlobals *kg, ShaderD
|
||||
}
|
||||
#endif
|
||||
|
||||
__device_inline void shader_setup_from_ray(KernelGlobals *kg, ShaderData *sd,
|
||||
__device void shader_setup_from_ray(KernelGlobals *kg, ShaderData *sd,
|
||||
const Intersection *isect, const Ray *ray)
|
||||
{
|
||||
#ifdef __INSTANCING__
|
||||
|
Reference in New Issue
Block a user