From 4800c52700b436d684823edf2b1af6aeec1ae1db Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Wed, 2 Jul 2014 01:12:13 +0200 Subject: Cleanup: Remove unused checks in CUDA device code. --- intern/cycles/device/device_cuda.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'intern') 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 { -- cgit v1.2.3