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

@@ -140,7 +140,13 @@ cl_mem Buffer::validateInputAndCreateBuffer(cl_context context,
}
// create the buffer
return create(pContext, memoryProperties, flags, flagsIntel, size, hostPtr, retVal);
auto buffer = create(pContext, memoryProperties, flags, flagsIntel, size, hostPtr, retVal);
if (retVal == CL_SUCCESS) {
buffer->storeProperties(properties);
}
return buffer;
}
Buffer *Buffer::create(Context *context,