mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 14:33:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
4b42b066f8
commit
c0c9ce548a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user