P4 to Git Change 1071332 by rili@rili_opencl_stg on 2014/08/28 17:28:16
EPR #405038 - Expose extension "cl_khr_depth_images" for OpenCL 2.0 Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpusettings.cpp#27 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#229 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpusettings.cpp#276 edit
This commit is contained in:
@@ -53,6 +53,7 @@ Settings::create()
|
||||
partialDispatch_ = true;
|
||||
enableExtension(ClKhrSubGroups);
|
||||
supportDepthsRGB_ = true;
|
||||
enableExtension(ClKhrDepthImages);
|
||||
}
|
||||
|
||||
// Map CPUID feature bits to our own feature bits
|
||||
|
||||
@@ -108,6 +108,7 @@ enum OclExtensions {
|
||||
ClKhrSpir,
|
||||
ClKhrSubGroups,
|
||||
ClKhrGlEvent,
|
||||
ClKhrDepthImages,
|
||||
ClExtTotal
|
||||
};
|
||||
|
||||
@@ -148,6 +149,7 @@ OclExtensionsString[] = {
|
||||
"cl_khr_spir ",
|
||||
"cl_khr_subgroups ",
|
||||
"cl_khr_gl_event ",
|
||||
"cl_khr_depth_images ",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
@@ -435,6 +435,7 @@ Settings::create(
|
||||
// Enable some OpenCL 2.0 extensions
|
||||
if (oclVersion_ >= OpenCL20) {
|
||||
enableExtension(ClKhrSubGroups);
|
||||
enableExtension(ClKhrDepthImages);
|
||||
}
|
||||
|
||||
// Override current device settings
|
||||
|
||||
Reference in New Issue
Block a user