mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:20:26 +08:00
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:
committed by
sys_ocldev
parent
6644e3990d
commit
99b0f04cc0
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user