diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-04-22 17:27:25 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-04-22 17:40:52 +0300 |
commit | cf5147f69f0e3c650cf4aadd8515371ce61d27be (patch) | |
tree | 02e71ceddcf6e38c09afaba2741e69d9729fc8af /intern/cycles/kernel/kernel_random.h | |
parent | 138b0c970efbfb732ddee0530e073537582b6df8 (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.h | 4 |
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__ |