Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/opencl/opencl_util.cpp
| Show First 20 Lines • Show All 685 Lines • ▼ Show 20 Lines | cl_device_type OpenCLInfo::device_type() | ||||
| } | } | ||||
| } | } | ||||
| bool OpenCLInfo::use_debug() | bool OpenCLInfo::use_debug() | ||||
| { | { | ||||
| return DebugFlags().opencl.debug; | return DebugFlags().opencl.debug; | ||||
| } | } | ||||
| bool OpenCLInfo::use_single_program() | |||||
| { | |||||
| return DebugFlags().opencl.single_program; | |||||
| } | |||||
| bool OpenCLInfo::kernel_use_advanced_shading(const string& platform) | bool OpenCLInfo::kernel_use_advanced_shading(const string& platform) | ||||
| { | { | ||||
| /* keep this in sync with kernel_types.h! */ | /* keep this in sync with kernel_types.h! */ | ||||
| if(platform == "NVIDIA CUDA") | if(platform == "NVIDIA CUDA") | ||||
| return true; | return true; | ||||
| else if(platform == "Apple") | else if(platform == "Apple") | ||||
| return true; | return true; | ||||
| else if(platform == "AMD Accelerated Parallel Processing") | else if(platform == "AMD Accelerated Parallel Processing") | ||||
| ▲ Show 20 Lines • Show All 613 Lines • Show Last 20 Lines | |||||