Files
test2/intern/cycles/kernel
Patrick Mours a1e40087c5 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
2019-09-25 14:22:21 +02:00
..
2019-08-17 00:57:05 +10:00
2019-09-19 13:19:53 +10:00
2019-09-13 21:12:43 +10:00
2019-06-15 09:24:38 +10:00
2019-08-26 16:07:01 +02:00