diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp index d209340d0c4..2f9f9af13d2 100644 --- a/intern/cycles/device/device_opencl.cpp +++ b/intern/cycles/device/device_opencl.cpp @@ -1675,8 +1675,6 @@ public: OpenCLDeviceSplitKernel(DeviceInfo& info, Stats &stats, bool background_) : OpenCLDeviceBase(info, stats, background_) { - - info.use_split_kernel = true; background = background_; /* Initialize kernels. */ @@ -3327,6 +3325,7 @@ Device *device_opencl_create(DeviceInfo& info, Stats &stats, bool background) { /* If the device is an AMD GPU, take split kernel path. */ VLOG(1) << "Using split kernel"; + info.use_split_kernel = true; return new OpenCLDeviceSplitKernel(info, stats, background); } else { /* For any other device, take megakernel path. */