[Bf-blender-cvs] [eae783e3ce3] cycles-x: Fix albedo used instead of normal pass in Cycles X OptiX denoiser

Sergey Sharybin noreply at git.blender.org
Mon May 10 12:37:40 CEST 2021


Commit: eae783e3ce36f0bf950a758eb7d8f208d557b5a2
Author: Sergey Sharybin
Date:   Mon May 10 12:36:30 2021 +0200
Branches: cycles-x
https://developer.blender.org/rBeae783e3ce36f0bf950a758eb7d8f208d557b5a2

Fix albedo used instead of normal pass in Cycles X OptiX denoiser

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

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 8bb4f88293e..a922e935352 100644
--- a/intern/cycles/kernel/device/cuda/kernel.cu
+++ b/intern/cycles/kernel/device/cuda/kernel.cu
@@ -496,7 +496,7 @@ extern "C" __global__ void CUDA_LAUNCH_BOUNDS(CUDA_KERNEL_BLOCK_NUM_THREADS,
   }
 
   if (num_inputs > 2) {
-    const float *in = buffer + pass_offset.y;
+    const float *in = buffer + pass_offset.z;
     float *out = rgb + (x + y * sw) * 3 + (sw * sh * 2) * 3;
     out[0] = in[0] * pixel_scale;
     out[1] = in[1] * pixel_scale;



More information about the Bf-blender-cvs mailing list