From 4fac3be14660a427a51547e88d7721912fb0577b Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 26 Nov 2021 19:11:14 +0100 Subject: Fix Cycles OptiX doing a bit too much work for almost opaque curve shadows Found in D13353, likely has no significant impact in performance. --- intern/cycles/kernel/device/optix/kernel.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/cycles/kernel/device/optix') 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 { -- cgit v1.2.3