Blender Git Commit Log
Git Commits -> Revision a1e4008
Revision a1e4008 by Patrick Mours (master) September 25, 2019, 12:22 (GMT) |
Cycles: Fix undefined behavior which can causes crashes with a misaligned address error Cycles casts a pointer from ShaderDataTinyStorage to ShaderData, these structs by default had different alignments however (the former was 1-byte aligned, the latter 16-byte). This caused undefined behavior on at least the CUDA platform. Forcing both structs to use the same alignment fixes this. CUDA toolkits newer than 10.1 run into this because of a compiler optimization. Reviewed By: brecht Differential Revision: https://developer.blender.org/D5883 |
Commit Details:
Full Hash: a1e40087c5ce327fecf469386a89daaad3880993
Parent Commit: 900a9a4
Lines Changed: +10, -4
1 Modified Path:
/intern/cycles/kernel/kernel_types.h (+10, -4) (Diff)