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:
authorJeroen Bakker <j.bakker@atmind.nl>2019-02-20 16:41:56 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2019-02-20 17:17:22 +0300
commit949ab753bb2e2d0f76921ed6d716f074ce863f21 (patch)
treecd39e16495b1c297557f9130273d0ccee45a4e16 /intern/cycles/device/device_opencl.cpp
parent667033e89e7fe5241592e72e088a19723ca906b5 (diff)
Cycles OpenCL: Remove OpenCL MegaKernel
Using OpenCL MegaKernel has been slow and therefore not usefull. This patch will remove the mega kernel from the OpenCL codebase and the OpenCLDeviceBase class. T61736: removal of mega kernel T61703: baking does not work with mega kernel Tags: #cycles Differential Revision: https://developer.blender.org/D4383
Diffstat (limited to 'intern/cycles/device/device_opencl.cpp')
-rw-r--r--intern/cycles/device/device_opencl.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index 1e8c6b2dd0e..948fe407f63 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -29,19 +29,7 @@ CCL_NAMESPACE_BEGIN
Device *device_opencl_create(DeviceInfo& info, Stats &stats, Profiler &profiler, bool background)
{
- vector<OpenCLPlatformDevice> usable_devices;
- OpenCLInfo::get_usable_devices(&usable_devices);
- assert(info.num < usable_devices.size());
- const OpenCLPlatformDevice& platform_device = usable_devices[info.num];
- const string& platform_name = platform_device.platform_name;
- const cl_device_type device_type = platform_device.device_type;
- if(OpenCLInfo::kernel_use_split(platform_name, device_type)) {
- VLOG(1) << "Using split kernel.";
- return opencl_create_split_device(info, stats, profiler, background);
- } else {
- VLOG(1) << "Using mega kernel.";
- return opencl_create_mega_device(info, stats, profiler, background);
- }
+ return opencl_create_split_device(info, stats, profiler, background);
}
bool device_opencl_init()
@@ -111,7 +99,6 @@ void device_opencl_info(vector<DeviceInfo>& devices)
foreach(OpenCLPlatformDevice& platform_device, usable_devices) {
/* Compute unique ID for persistent user preferences. */
const string& platform_name = platform_device.platform_name;
- const cl_device_type device_type = platform_device.device_type;
const string& device_name = platform_device.device_name;
string hardware_id = platform_device.hardware_id;
if(hardware_id == "") {
@@ -133,8 +120,7 @@ void device_opencl_info(vector<DeviceInfo>& devices)
/* We don't know if it's used for display, but assume it is. */
info.display_device = true;
info.advanced_shading = OpenCLInfo::kernel_use_advanced_shading(platform_name);
- info.use_split_kernel = OpenCLInfo::kernel_use_split(platform_name,
- device_type);
+ info.use_split_kernel = true;
info.has_volume_decoupled = false;
info.id = id;