Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2020-04-22 17:27:25 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2020-04-22 17:40:52 +0300
commitcf5147f69f0e3c650cf4aadd8515371ce61d27be (patch)
tree02e71ceddcf6e38c09afaba2741e69d9729fc8af /intern/cycles/kernel/kernel_random.h
parent138b0c970efbfb732ddee0530e073537582b6df8 (diff)
Fix T74423: Cycles rendering artifacts with CUDA 10.2
Work around what appears to be a compiler bug, just changing the code a bit without any functional changes.
Diffstat (limited to 'intern/cycles/kernel/kernel_random.h')
-rw-r--r--intern/cycles/kernel/kernel_random.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_random.h b/intern/cycles/kernel/kernel_random.h
index f4c3b36e778..a9b17854f25 100644
--- a/intern/cycles/kernel/kernel_random.h
+++ b/intern/cycles/kernel/kernel_random.h
@@ -102,7 +102,9 @@ ccl_device_forceinline void path_rng_2D(KernelGlobals *kg,
return;
#endif
if (kernel_data.integrator.sampling_pattern == SAMPLING_PATTERN_PMJ) {
- pmj_sample_2D(kg, sample, rng_hash, dimension, fx, fy);
+ const float2 f = pmj_sample_2D(kg, sample, rng_hash, dimension);
+ *fx = f.x;
+ *fy = f.y;
return;
}
#ifdef __CMJ__