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

@@ -181,6 +181,14 @@ public:
cuda_assert(cuCtxDetach(cuContext))
}
bool support_full_kernel()
{
int major, minor;
cuDeviceComputeCapability(&major, &minor, cuDevId);
return (major >= 2);
}
string description()
{
/* print device information */