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.
This commit is contained in:
@@ -356,11 +356,6 @@ ccl_device void kernel_bake_evaluate(KernelGlobals *kg, ccl_global uint4 *input,
|
||||
|
||||
ccl_device void kernel_shader_evaluate(KernelGlobals *kg, ccl_global uint4 *input, ccl_global float4 *output, ShaderEvalType type, int i)
|
||||
{
|
||||
if(type >= SHADER_EVAL_BAKE) {
|
||||
kernel_bake_evaluate(kg, input, output, type, i);
|
||||
return;
|
||||
}
|
||||
|
||||
ShaderData sd;
|
||||
uint4 in = input[i];
|
||||
float3 out;
|
||||
|
Reference in New Issue
Block a user