Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_opencl.cpp
| Show First 20 Lines • Show All 1,636 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| class OpenCLDeviceMegaKernel : public OpenCLDeviceBase | class OpenCLDeviceMegaKernel : public OpenCLDeviceBase | ||||
| { | { | ||||
| public: | public: | ||||
| cl_kernel ckPathTraceKernel; | cl_kernel ckPathTraceKernel; | ||||
| cl_program path_trace_program; | cl_program path_trace_program; | ||||
| virtual bool show_samples() const | |||||
| { | |||||
| return true; | |||||
| } | |||||
| OpenCLDeviceMegaKernel(DeviceInfo& info, Stats &stats, bool background_) | OpenCLDeviceMegaKernel(DeviceInfo& info, Stats &stats, bool background_) | ||||
| : OpenCLDeviceBase(info, stats, background_) | : OpenCLDeviceBase(info, stats, background_) | ||||
| { | { | ||||
| ckPathTraceKernel = NULL; | ckPathTraceKernel = NULL; | ||||
| path_trace_program = NULL; | path_trace_program = NULL; | ||||
| } | } | ||||
| bool load_kernels(const DeviceRequestedFeatures& requested_features) | bool load_kernels(const DeviceRequestedFeatures& requested_features) | ||||
| ▲ Show 20 Lines • Show All 337 Lines • ▼ Show 20 Lines | |||||
| #endif | #endif | ||||
| /* clos_max value for which the kernels have been loaded currently. */ | /* clos_max value for which the kernels have been loaded currently. */ | ||||
| int current_max_closure; | int current_max_closure; | ||||
| /* Marked True in constructor and marked false at the end of path_trace(). */ | /* Marked True in constructor and marked false at the end of path_trace(). */ | ||||
| bool first_tile; | bool first_tile; | ||||
| virtual bool show_samples() const | |||||
| { | |||||
| return false; | |||||
| } | |||||
| OpenCLDeviceSplitKernel(DeviceInfo& info, Stats &stats, bool background_) | OpenCLDeviceSplitKernel(DeviceInfo& info, Stats &stats, bool background_) | ||||
| : OpenCLDeviceBase(info, stats, background_) | : OpenCLDeviceBase(info, stats, background_) | ||||
| { | { | ||||
| background = background_; | background = background_; | ||||
| /* Initialize kernels. */ | /* Initialize kernels. */ | ||||
| ckPathTraceKernel_data_init = NULL; | ckPathTraceKernel_data_init = NULL; | ||||
| ckPathTraceKernel_scene_intersect = NULL; | ckPathTraceKernel_scene_intersect = NULL; | ||||
| ▲ Show 20 Lines • Show All 1,409 Lines • Show Last 20 Lines | |||||