diff options
Diffstat (limited to 'intern/cycles/device/device_opencl.cpp')
-rw-r--r-- | intern/cycles/device/device_opencl.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp index 322b7ad3eb9..09235506048 100644 --- a/intern/cycles/device/device_opencl.cpp +++ b/intern/cycles/device/device_opencl.cpp @@ -212,7 +212,7 @@ public: { char version[256]; - int major, minor, req_major = 1, req_minor = 1; + int major, minor, req_major = 1, req_minor = 0; clGetPlatformInfo(cpPlatform, CL_PLATFORM_VERSION, sizeof(version), &version, NULL); @@ -300,15 +300,15 @@ public: /* Multi Closure for nVidia cards */ if(platform_name == "NVIDIA CUDA") - build_options += "-D__KERNEL_SHADING__ -D__MULTI_CLOSURE__ -cl-nv-maxrregcount=24 -cl-nv-verbose "; + build_options += "-D__KERNEL_SHADING__ -D__KERNEL_OPENCL_NVIDIA__ -cl-nv-maxrregcount=24 -cl-nv-verbose "; /* No Float3 for Apple */ else if(platform_name == "Apple") - build_options += "-D__CL_NO_FLOAT3__ "; + build_options += "-D__CL_NO_FLOAT3__ -D__KERNEL_OPENCL_APPLE__ "; /* Basic shading for AMD cards (non Apple) */ else if(platform_name == "AMD Accelerated Parallel Processing") - build_options += "-D__KERNEL_SHADING__ -D__CL_NO_FLOAT3__ "; + build_options += "-D__CL_NO_FLOAT3__ -D__KERNEL_OPENCL_AMD__ "; return build_options; } @@ -743,6 +743,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 = false; + info.pack_images = true; devices.push_back(info); } |