Cycles: Code cleanup, spaces around keywords
[blender-staging.git] / intern / cycles / device / device_cuda.cpp
index 407f72034b3c8e99f4bb9ca952879fd753aba6b0..5afeb896ac8bb984acaea868a0694941987778e5 100644 (file)
@@ -331,7 +331,7 @@ public:
                string cubin_data;
                CUresult result;
 
-               if (path_read_text(cubin, cubin_data))
+               if(path_read_text(cubin, cubin_data))
                        result = cuModuleLoadData(&cuModule, cubin_data.c_str());
                else
                        result = CUDA_ERROR_FILE_NOT_FOUND;
@@ -483,7 +483,7 @@ public:
                                if(interpolation == INTERPOLATION_CLOSEST) {
                                        cuda_assert(cuTexRefSetFilterMode(texref, CU_TR_FILTER_MODE_POINT));
                                }
-                               else if (interpolation == INTERPOLATION_LINEAR) {
+                               else if(interpolation == INTERPOLATION_LINEAR) {
                                        cuda_assert(cuTexRefSetFilterMode(texref, CU_TR_FILTER_MODE_LINEAR));
                                }
                                else {/* CUBIC and SMART are unsupported for CUDA */
@@ -966,7 +966,7 @@ public:
                                int end_sample = tile.start_sample + tile.num_samples;
 
                                for(int sample = start_sample; sample < end_sample; sample++) {
-                                       if (task->get_cancel()) {
+                                       if(task->get_cancel()) {
                                                if(task->need_finish_queue == false)
                                                        break;
                                        }
@@ -1035,12 +1035,12 @@ bool device_cuda_init(void)
        static bool initialized = false;
        static bool result = false;
 
-       if (initialized)
+       if(initialized)
                return result;
 
        initialized = true;
        int cuew_result = cuewInit();
-       if (cuew_result == CUEW_SUCCESS) {
+       if(cuew_result == CUEW_SUCCESS) {
                VLOG(1) << "CUEW initialization succeeded";
                if(CUDADevice::have_precompiled_kernels()) {
                        VLOG(1) << "Found precompiled  kernels";