[Bf-blender-cvs] [f3b8ba6c7ed] cycles-x: Fix Cycles X wrong OptiX denoising with normal pass

Brecht Van Lommel noreply at git.blender.org
Wed Jul 28 18:26:23 CEST 2021


Commit: f3b8ba6c7ed9b92f1afd6af504df0b40131aca38
Author: Brecht Van Lommel
Date:   Wed Jul 28 18:12:16 2021 +0200
Branches: cycles-x
https://developer.blender.org/rBf3b8ba6c7ed9b92f1afd6af504df0b40131aca38

Fix Cycles X wrong OptiX denoising with normal pass

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

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

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

diff --git a/intern/cycles/kernel/device/cuda/kernel.cu b/intern/cycles/kernel/device/cuda/kernel.cu
index 0bf198c991b..a43d41ff5c7 100644
--- a/intern/cycles/kernel/device/cuda/kernel.cu
+++ b/intern/cycles/kernel/device/cuda/kernel.cu
@@ -731,9 +731,9 @@ extern "C" __global__ void CUDA_LAUNCH_BOUNDS(CUDA_KERNEL_BLOCK_NUM_THREADS,
     const float *normal_in = buffer + render_pass_denoising_normal;
     float *normal_out = guiding_pixel + guiding_pass_normal;
 
-    normal_out[3] = normal_in[0] * pixel_scale;
-    normal_out[4] = normal_in[1] * pixel_scale;
-    normal_out[5] = normal_in[2] * pixel_scale;
+    normal_out[0] = normal_in[0] * pixel_scale;
+    normal_out[1] = normal_in[1] * pixel_scale;
+    normal_out[2] = normal_in[2] * pixel_scale;
   }
 }



More information about the Bf-blender-cvs mailing list