From 676b019846c67d22f92e9496222c771e314c66bb Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sun, 18 Aug 2013 22:25:37 +0000 Subject: [PATCH] Cycles: * Fix 16 byte alignment for constant hair kernel data. --- intern/cycles/kernel/kernel_types.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h index d98356c2e55..78724d71ffa 100644 --- a/intern/cycles/kernel/kernel_types.h +++ b/intern/cycles/kernel/kernel_types.h @@ -804,19 +804,20 @@ typedef enum CurveFlag { CURVE_KN_POSTINTERSECTCORRECTION = 32, /* correct for width after intersect? */ CURVE_KN_TRUETANGENTGNORMAL = 64, /* use tangent normal for geometry? */ CURVE_KN_TANGENTGNORMAL = 128, /* use tangent normal for shader? */ - CURVE_KN_RIBBONS = 256, /* use flat curve ribbons */ + CURVE_KN_RIBBONS = 256, /* use flat curve ribbons */ } CurveFlag; typedef struct KernelCurves { - /* strand intersect and normal parameters - many can be changed to flags*/ + /* strand intersect and normal parameters - many can be changed to flags */ float encasing_ratio; int curveflags; int subdivisions; + int pad1; float minimum_width; float maximum_width; float curve_epsilon; - int pad1; + int pad2; } KernelCurves; typedef struct KernelBSSRDF {