Validate level zero events in TBX mode

Related-To: NEO-7545

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2022-11-25 16:51:17 +00:00
committed by Compute-Runtime-Automation
parent 4b42b066f8
commit c0c9ce548a
23 changed files with 378 additions and 34 deletions

View File

@@ -17,8 +17,7 @@ template <typename TagSizeT>
Event *Event::create(EventPool *eventPool, const ze_event_desc_t *desc, Device *device) {
auto neoDevice = device->getNEODevice();
auto csr = neoDevice->getDefaultEngine().commandStreamReceiver;
bool downloadAllocationRequired = (csr->getType() == NEO::CommandStreamReceiverType::CSR_TBX ||
csr->getType() == NEO::CommandStreamReceiverType::CSR_TBX_WITH_AUB);
bool downloadAllocationRequired = csr->isTbxMode();
auto event = new EventImp<TagSizeT>(eventPool, desc->index, device, downloadAllocationRequired);
UNRECOVERABLE_IF(event == nullptr);