Cycles: enable multi closure sampling and transparent shadows only on CPU and

CUDA cards with shader model >= 2 for now (GTX 4xx, 5xx, ..). The CUDA compiler
can't handle the increased kernel size currently.
This commit is contained in:
Brecht Van Lommel
2011-10-16 18:54:27 +00:00
parent 33691eb0e7
commit 5fd67a3ba5
10 changed files with 44 additions and 9 deletions

View File

@@ -58,7 +58,7 @@ void SVMShaderManager::device_update(Device *device, DeviceScene *dscene, Scene
}
bool sunsky_done = false;
bool use_multi_closure = (scene->params.use_multi_closure && device->type() != DEVICE_OPENCL);
bool use_multi_closure = device->support_full_kernel();
for(i = 0; i < scene->shaders.size(); i++) {
Shader *shader = scene->shaders[i];