forked from bartvdbraak/blender
Fix T44830, wrong sample progress number when using split device.
Value was not set, moved it out of the constructor into device_opencl_create() now.
This commit is contained in:
parent
025a646114
commit
c3ab5b3089
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user