mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 08:53:55 +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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user