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
path: root/intern
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-07-02 03:12:13 +0400
committerThomas Dinges <blender@dingto.org>2014-07-02 03:12:13 +0400
commit4800c52700b436d684823edf2b1af6aeec1ae1db (patch)
tree9c4e55d838c3ef497d9daf3037b25cfca2ebef9a /intern
parent6ac06523955ef765d82cb094b890dc7e78ab6d14 (diff)
Cleanup: Remove unused checks in CUDA device code.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/device/device_cuda.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/device/device_cuda.cpp b/intern/cycles/device/device_cuda.cpp
index 0aa09ac5383..92d29e4e3c1 100644
--- a/intern/cycles/device/device_cuda.cpp
+++ b/intern/cycles/device/device_cuda.cpp
@@ -226,7 +226,7 @@ public:
cuda_assert(cuCtxDestroy(cuContext));
}
- bool support_device(bool experimental, bool branched)
+ bool support_device(bool experimental)
{
int major, minor;
cuDeviceComputeCapability(&major, &minor, cuDevId);
@@ -332,7 +332,7 @@ public:
return false;
/* check if GPU is supported */
- if(!support_device(experimental, false))
+ if(!support_device(experimental))
return false;
/* get kernel */
@@ -594,7 +594,7 @@ public:
CUdeviceptr d_rng_state = cuda_device_ptr(rtile.rng_state);
/* get kernel function */
- if(branched && support_device(true, branched)) {
+ if(branched) {
cuda_assert(cuModuleGetFunction(&cuPathTrace, cuModule, "kernel_cuda_branched_path_trace"));
}
else {