[Bf-blender-cvs] [4cd485f3554] temp-cycles-denoising: Cycles Denoising: Cleanup offset calulation
Lukas Stockner
noreply at git.blender.org
Tue May 2 13:43:35 CEST 2017
Commit: 4cd485f35544bae5094c558c759917c7880b7543
Author: Lukas Stockner
Date: Tue May 2 13:16:42 2017 +0200
Branches: temp-cycles-denoising
https://developer.blender.org/rB4cd485f35544bae5094c558c759917c7880b7543
Cycles Denoising: Cleanup offset calulation
===================================================================
M intern/cycles/kernel/filter/filter_nlm_cpu.h
===================================================================
diff --git a/intern/cycles/kernel/filter/filter_nlm_cpu.h b/intern/cycles/kernel/filter/filter_nlm_cpu.h
index 7e327fed1e1..1a314b100be 100644
--- a/intern/cycles/kernel/filter/filter_nlm_cpu.h
+++ b/intern/cycles/kernel/filter/filter_nlm_cpu.h
@@ -135,7 +135,7 @@ ccl_device_inline void kernel_filter_nlm_construct_gramian(int dx, int dy,
float weight = sum * (1.0f/(high - low));
int storage_ofs = fy*filter_rect.z + fx;
- float *l_transform = transform + storage_ofs*DENOISE_FEATURES*DENOISE_FEATURES;
+ float *l_transform = transform + storage_ofs*TRANSFORM_SIZE;
float *l_XtWX = XtWX + storage_ofs*XTWX_SIZE;
float3 *l_XtWY = XtWY + storage_ofs*XTWY_SIZE;
int *l_rank = rank + storage_ofs;
More information about the Bf-blender-cvs
mailing list