[Bf-blender-cvs] [cfb680e7271] cycles-x: Cycles: Avoid pixel offset calculation when is not needed
Sergey Sharybin
noreply at git.blender.org
Tue May 4 15:54:36 CEST 2021
Commit: cfb680e72717ddce37092a8f6679d911c44a99d7
Author: Sergey Sharybin
Date: Tue May 4 10:09:43 2021 +0200
Branches: cycles-x
https://developer.blender.org/rBcfb680e72717ddce37092a8f6679d911c44a99d7
Cycles: Avoid pixel offset calculation when is not needed
Possibly gives unmeasurable speedup in the denoising passes
writing function.
===================================================================
M intern/cycles/kernel/kernel_passes.h
===================================================================
diff --git a/intern/cycles/kernel/kernel_passes.h b/intern/cycles/kernel/kernel_passes.h
index abe6acbc828..0439936c56a 100644
--- a/intern/cycles/kernel/kernel_passes.h
+++ b/intern/cycles/kernel/kernel_passes.h
@@ -42,13 +42,13 @@ ccl_device_inline void kernel_write_denoising_features(
return;
}
- ccl_global float *buffer = kernel_pass_pixel_render_buffer(INTEGRATOR_STATE_PASS, render_buffer);
-
/* Skip implicitly transparent surfaces. */
if (sd->flag & SD_HAS_ONLY_VOLUME) {
return;
}
+ ccl_global float *buffer = kernel_pass_pixel_render_buffer(INTEGRATOR_STATE_PASS, render_buffer);
+
float3 normal = zero_float3();
float3 diffuse_albedo = zero_float3();
float3 specular_albedo = zero_float3();
More information about the Bf-blender-cvs
mailing list