Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-01-27 17:58:32 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-01-27 17:58:32 +0400
commitb023665551d2059d34ffa45d4234abb3d1c92736 (patch)
tree1f2013fa4cf048a52b0282a3edec8db2d14bbb1c /intern/cycles/util
parent3062798de3a34d461578da4bd9d8d4f700f70ddb (diff)
Cycles: another fix for CUDA render passes, needed to align float4 passes.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/util_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/util/util_types.h b/intern/cycles/util/util_types.h
index 2c0ae13ad2a..efdda98571a 100644
--- a/intern/cycles/util/util_types.h
+++ b/intern/cycles/util/util_types.h
@@ -277,6 +277,11 @@ __device float4 make_float4(float x, float y, float z, float w)
return a;
}
+__device int align_up(int offset, int alignment)
+{
+ return (offset + alignment - 1) & ~(alignment - 1);
+}
+
#endif
CCL_NAMESPACE_END