Add new API properties queries

Add queries for getting properties that were used when creating an object:
 - CL_QUEUE_PROPERTIES_ARRAY
 - CL_PIPE_PROPERTIES
 - CL_MEM_PROPERTIES
 - CL_SAMPLER_PROPERTIES

Related-To: NEO-4368

Change-Id: Ib761ee3dd338e9718d72ed4c9596b38843a9b802
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2020-05-27 17:12:32 +02:00
committed by sys_ocldev
parent 6644e3990d
commit 99b0f04cc0
15 changed files with 290 additions and 22 deletions

View File

@@ -1165,7 +1165,13 @@ cl_mem Image::validateAndCreateImage(cl_context context,
return nullptr;
}
return Image::create(pContext, memoryProperties, flags, flagsIntel, surfaceFormat, imageDesc, hostPtr, errcodeRet);
auto image = Image::create(pContext, memoryProperties, flags, flagsIntel, surfaceFormat, imageDesc, hostPtr, errcodeRet);
if (errcodeRet == CL_SUCCESS) {
image->storeProperties(properties);
}
return image;
}
bool Image::isValidSingleChannelFormat(const cl_image_format *imageFormat) {