[Bf-blender-cvs] [9ff7820f62a] blender-v2.90-release master: Fix T79259: OptiX render with fisheye camera is different to CUDA

Patrick Mours noreply at git.blender.org
Tue Jul 28 15:46:38 CEST 2020


Commit: 9ff7820f62a8f0c6ab0de113b797de77a433cc21
Author: Patrick Mours
Date:   Tue Jul 28 15:45:46 2020 +0200
Branches: blender-v2.90-release master
https://developer.blender.org/rB9ff7820f62a8f0c6ab0de113b797de77a433cc21

Fix T79259: OptiX render with fisheye camera is different to CUDA

The fisheye camera setup causes the edges of the image to not shoot primary rays. This was not
respected by OptiX because of an optimization that tried to reduce conditionals around trace calls.
Removing that does not seem to have an impact on performance anymore however and it fixes
the issue.

===================================================================

M	intern/cycles/kernel/kernel_path.h

===================================================================

diff --git a/intern/cycles/kernel/kernel_path.h b/intern/cycles/kernel/kernel_path.h
index eb6c94fe104..c332d5ad3ec 100644
--- a/intern/cycles/kernel/kernel_path.h
+++ b/intern/cycles/kernel/kernel_path.h
@@ -665,11 +665,9 @@ ccl_device void kernel_path_trace(
 
   kernel_path_trace_setup(kg, sample, x, y, &rng_hash, &ray);
 
-#  ifndef __KERNEL_OPTIX__
   if (ray.t == 0.0f) {
     return;
   }
-#  endif
 
   /* Initialize state. */
   float3 throughput = make_float3(1.0f, 1.0f, 1.0f);



More information about the Bf-blender-cvs mailing list