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@gmail.com>2014-05-27 15:20:07 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-05-27 17:11:32 +0400
commit69c7522b2463245ef16ebcf2806645c78e83b4df (patch)
tree96721c9d2bc755d68cf9eeded77255f4c58018f3 /intern/cycles/kernel/kernel_sse3.cpp
parentbc9e66f0830627e807f720dca4b9d5d8d39e732a (diff)
Fix T40379: world MIS causing too much CUDA memory usage.
The kernel for baking the world texture was the same as the one used for baking. Now that's separate which allows the kernel to reserve much less memory.
Diffstat (limited to 'intern/cycles/kernel/kernel_sse3.cpp')
-rw-r--r--intern/cycles/kernel/kernel_sse3.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_sse3.cpp b/intern/cycles/kernel/kernel_sse3.cpp
index 29aca52890e..3b18b164ffd 100644
--- a/intern/cycles/kernel/kernel_sse3.cpp
+++ b/intern/cycles/kernel/kernel_sse3.cpp
@@ -68,7 +68,10 @@ void kernel_cpu_sse3_convert_to_half_float(KernelGlobals *kg, uchar4 *rgba, floa
void kernel_cpu_sse3_shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int i)
{
- kernel_shader_evaluate(kg, input, output, (ShaderEvalType)type, i);
+ if(type >= SHADER_EVAL_BAKE)
+ kernel_bake_evaluate(kg, input, output, (ShaderEvalType)type, i);
+ else
+ kernel_shader_evaluate(kg, input, output, (ShaderEvalType)type, i);
}
CCL_NAMESPACE_END