[Bf-blender-cvs] [4fac3be1466] master: Fix Cycles OptiX doing a bit too much work for almost opaque curve shadows

Brecht Van Lommel noreply at git.blender.org
Mon Nov 29 18:43:58 CET 2021


Commit: 4fac3be14660a427a51547e88d7721912fb0577b
Author: Brecht Van Lommel
Date:   Fri Nov 26 19:11:14 2021 +0100
Branches: master
https://developer.blender.org/rB4fac3be14660a427a51547e88d7721912fb0577b

Fix Cycles OptiX doing a bit too much work for almost opaque curve shadows

Found in D13353, likely has no significant impact in performance.

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

M	intern/cycles/kernel/device/optix/kernel.cu

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

diff --git a/intern/cycles/kernel/device/optix/kernel.cu b/intern/cycles/kernel/device/optix/kernel.cu
index 70b977b3d84..c9a48315544 100644
--- a/intern/cycles/kernel/device/optix/kernel.cu
+++ b/intern/cycles/kernel/device/optix/kernel.cu
@@ -236,7 +236,7 @@ extern "C" __global__ void __anyhit__kernel_optix_shadow_all_hit()
     optixSetPayload_2(uint16_pack_to_uint(num_recorded_hits, num_hits + 1));
 
     if (throughput < CURVE_SHADOW_TRANSPARENCY_CUTOFF) {
-      optixSetPayload_4(true);
+      optixSetPayload_5(true);
       return optixTerminateRay();
     }
     else {



More information about the Bf-blender-cvs mailing list