mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Add supportsPipes HW capability
supportsPipes set to false will disable support of Pipes on a device. Related-To: NEO-4368 Change-Id: I2b03984d7618e85f482f8f8fa0fe3ef45ece7c19 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
70c39ec57b
commit
85a5dcfe62
@@ -4668,6 +4668,11 @@ cl_mem CL_API_CALL clCreatePipe(cl_context context,
|
||||
}
|
||||
auto pDevice = pContext->getDevice(0);
|
||||
|
||||
if (pDevice->arePipesSupported() == false) {
|
||||
retVal = CL_INVALID_OPERATION;
|
||||
break;
|
||||
}
|
||||
|
||||
if (pipePacketSize > pDevice->getDeviceInfo().pipeMaxPacketSize) {
|
||||
retVal = CL_INVALID_PIPE_SIZE;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user