mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
refactor: pass additional data to ioctl helper
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f1c2ea0b69
commit
2a2596c13b
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shared/source/helpers/common_types.h"
|
||||
#include "shared/source/helpers/timestamp_packet_constants.h"
|
||||
#include "shared/source/helpers/timestamp_packet_container.h"
|
||||
#include "shared/source/memory_manager/multi_graphics_allocation.h"
|
||||
@@ -337,7 +338,7 @@ struct Event : _ze_event_handle_t {
|
||||
uint32_t maxPacketCount = 0;
|
||||
uint32_t totalEventSize = 0;
|
||||
uint32_t counterBasedFlags = 0;
|
||||
uint32_t externalInterruptId = 0;
|
||||
uint32_t externalInterruptId = NEO::InterruptId::notUsed;
|
||||
|
||||
CounterBasedMode counterBasedMode = CounterBasedMode::initiallyDisabled;
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ HWTEST2_F(InOrderCmdListTests, givenEventSyncModeDescPassedWhenCreatingEventThen
|
||||
syncModeDesc.syncModeFlags = ZEX_INTEL_EVENT_SYNC_MODE_EXP_FLAG_SIGNAL_INTERRUPT;
|
||||
syncModeDesc.externalInterruptId = 123;
|
||||
auto event4 = DestroyableZeUniquePtr<FixtureMockEvent>(static_cast<FixtureMockEvent *>(Event::create<typename FamilyType::TimestampPacketType>(eventPool.get(), &eventDesc, device)));
|
||||
EXPECT_EQ(0u, event4->externalInterruptId);
|
||||
EXPECT_EQ(NEO::InterruptId::notUsed, event4->externalInterruptId);
|
||||
|
||||
eventDesc.index = 5;
|
||||
syncModeDesc.syncModeFlags = ZEX_INTEL_EVENT_SYNC_MODE_EXP_FLAG_LOW_POWER_WAIT;
|
||||
@@ -3895,7 +3895,7 @@ HWTEST2_F(InOrderCmdListTests, givenStandaloneCbEventWhenPassingExternalInterrup
|
||||
|
||||
syncModeDesc.syncModeFlags = ZEX_INTEL_EVENT_SYNC_MODE_EXP_FLAG_SIGNAL_INTERRUPT;
|
||||
auto event1 = createStandaloneCbEvent(reinterpret_cast<const ze_base_desc_t *>(&syncModeDesc));
|
||||
EXPECT_EQ(0u, event1->externalInterruptId);
|
||||
EXPECT_EQ(NEO::InterruptId::notUsed, event1->externalInterruptId);
|
||||
|
||||
syncModeDesc.syncModeFlags = ZEX_INTEL_EVENT_SYNC_MODE_EXP_FLAG_LOW_POWER_WAIT;
|
||||
auto event2 = createStandaloneCbEvent(reinterpret_cast<const ze_base_desc_t *>(&syncModeDesc));
|
||||
|
||||
Reference in New Issue
Block a user