Fix T92575: Cycles black pixels when rendering with > 65k samples

Differential Revision: https://developer.blender.org/D13039
This commit is contained in:
William Leeson 2021-10-31 22:13:30 +01:00 committed by Brecht Van Lommel
parent 0ab1b19de4
commit 0b060905d9
Notes: blender-bot 2023-02-14 06:37:09 +01:00
Referenced by issue #92575, Cycles: With PMJ black pixels appear in the "Monster" scene while rendering ground truth
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ KERNEL_STRUCT_BEGIN(shadow_path)
/* Index of a pixel within the device render buffer. */
KERNEL_STRUCT_MEMBER(shadow_path, uint32_t, render_pixel_index, KERNEL_FEATURE_PATH_TRACING)
/* Current sample number. */
KERNEL_STRUCT_MEMBER(shadow_path, uint16_t, sample, KERNEL_FEATURE_PATH_TRACING)
KERNEL_STRUCT_MEMBER(shadow_path, uint32_t, sample, KERNEL_FEATURE_PATH_TRACING)
/* Random number generator seed. */
KERNEL_STRUCT_MEMBER(shadow_path, uint32_t, rng_hash, KERNEL_FEATURE_PATH_TRACING)
/* Random number dimension offset. */

View File

@ -25,7 +25,7 @@ KERNEL_STRUCT_BEGIN(path)
* The multiplication is delayed for later, so that state can use 32bit integer. */
KERNEL_STRUCT_MEMBER(path, uint32_t, render_pixel_index, KERNEL_FEATURE_PATH_TRACING)
/* Current sample number. */
KERNEL_STRUCT_MEMBER(path, uint16_t, sample, KERNEL_FEATURE_PATH_TRACING)
KERNEL_STRUCT_MEMBER(path, uint32_t, sample, KERNEL_FEATURE_PATH_TRACING)
/* Current ray bounce depth. */
KERNEL_STRUCT_MEMBER(path, uint16_t, bounce, KERNEL_FEATURE_PATH_TRACING)
/* Current transparent ray bounce depth. */