diff options
author | Thomas Dinges <blender@dingto.org> | 2014-07-02 03:12:13 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-07-02 03:12:13 +0400 |
commit | 4800c52700b436d684823edf2b1af6aeec1ae1db (patch) | |
tree | 9c4e55d838c3ef497d9daf3037b25cfca2ebef9a /intern/cycles/device/device_cuda.cpp | |
parent | 6ac06523955ef765d82cb094b890dc7e78ab6d14 (diff) |
Cleanup: Remove unused checks in CUDA device code.
Diffstat (limited to 'intern/cycles/device/device_cuda.cpp')
-rw-r--r-- | intern/cycles/device/device_cuda.cpp | 6 |
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 { |