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
diff options
context:
space:
mode:
authorPatrick Mours <pmours@nvidia.com>2020-02-11 20:54:50 +0300
committerPatrick Mours <pmours@nvidia.com>2020-02-12 15:11:32 +0300
commit153e001c743bf0f6bc259966418446441e00e200 (patch)
tree280bafa4dfcba152fe774864b1636dd281be9713 /intern/cycles/device/device_opencl.cpp
parentcc085e228de70563ed0b6870d23ef3bb531c4798 (diff)
Cleanup: Move common CUDA/OptiX Cycles device code into separate file
This reduces code duplication between the CUDA and OptiX device implementations: The CUDA device class is now split into declaration and definition (similar to the OpenCL device) and the OptiX device class implements that and only overrides the functions it actually has to change, while using the CUDA implementation for everything else. Reviewed By: brecht Differential Revision: https://developer.blender.org/D6814
Diffstat (limited to 'intern/cycles/device/device_opencl.cpp')
-rw-r--r--intern/cycles/device/device_opencl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index b07596c60ff..83f3598df3c 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -16,9 +16,7 @@
#ifdef WITH_OPENCL
-# include "device/opencl/opencl.h"
-
-# include "device/device_intern.h"
+# include "device/opencl/device_opencl.h"
# include "util/util_foreach.h"
# include "util/util_logging.h"