mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Add ClDevice function to query OCL2.1 support
Change-Id: I4a1e7def6b26241592dba4ecd4a6a6cb3bb69835 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1dad22a12a
commit
c3ea485752
@@ -287,7 +287,7 @@ cl_int Context::getSupportedImageFormats(
|
||||
cl_uint *numImageFormatsReturned) {
|
||||
size_t numImageFormats = 0;
|
||||
|
||||
if (flags & CL_MEM_KERNEL_READ_AND_WRITE && device->getSpecializedDevice<ClDevice>()->getEnabledClVersion() < 20) {
|
||||
if (flags & CL_MEM_KERNEL_READ_AND_WRITE && device->getSpecializedDevice<ClDevice>()->areOcl21FeaturesEnabled() == false) {
|
||||
if (numImageFormatsReturned) {
|
||||
*numImageFormatsReturned = static_cast<cl_uint>(numImageFormats);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user