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;
|
partialDispatch_ = true;
|
||||||
enableExtension(ClKhrSubGroups);
|
enableExtension(ClKhrSubGroups);
|
||||||
supportDepthsRGB_ = true;
|
supportDepthsRGB_ = true;
|
||||||
|
enableExtension(ClKhrDepthImages);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Map CPUID feature bits to our own feature bits
|
// Map CPUID feature bits to our own feature bits
|
||||||
|
|||||||
@@ -108,6 +108,7 @@ enum OclExtensions {
|
|||||||
ClKhrSpir,
|
ClKhrSpir,
|
||||||
ClKhrSubGroups,
|
ClKhrSubGroups,
|
||||||
ClKhrGlEvent,
|
ClKhrGlEvent,
|
||||||
|
ClKhrDepthImages,
|
||||||
ClExtTotal
|
ClExtTotal
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -148,6 +149,7 @@ OclExtensionsString[] = {
|
|||||||
"cl_khr_spir ",
|
"cl_khr_spir ",
|
||||||
"cl_khr_subgroups ",
|
"cl_khr_subgroups ",
|
||||||
"cl_khr_gl_event ",
|
"cl_khr_gl_event ",
|
||||||
|
"cl_khr_depth_images ",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -435,6 +435,7 @@ Settings::create(
|
|||||||
// Enable some OpenCL 2.0 extensions
|
// Enable some OpenCL 2.0 extensions
|
||||||
if (oclVersion_ >= OpenCL20) {
|
if (oclVersion_ >= OpenCL20) {
|
||||||
enableExtension(ClKhrSubGroups);
|
enableExtension(ClKhrSubGroups);
|
||||||
|
enableExtension(ClKhrDepthImages);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Override current device settings
|
// Override current device settings
|
||||||
|
|||||||
Reference in New Issue
Block a user