refactor: use same paths when add command mi_semaphore_wait

Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
This commit is contained in:
Cencelewska, Katarzyna
2023-03-03 19:01:14 +00:00
committed by Compute-Runtime-Automation
parent 50da32ffb1
commit 3e116ea378
34 changed files with 147 additions and 155 deletions

View File

@@ -370,7 +370,8 @@ struct EncodeSempahore {
uint64_t compareAddress,
uint32_t compareData,
COMPARE_OPERATION compareMode,
bool registerPollMode);
bool registerPollMode,
bool waitMode);
static void addMiSemaphoreWaitCommand(LinearStream &commandStream,
uint64_t compareAddress,
@@ -383,6 +384,9 @@ struct EncodeSempahore {
uint32_t compareData,
COMPARE_OPERATION compareMode);
static void applyMiSemaphoreWaitCommand(LinearStream &commandStream,
std::list<void *> &commandsList);
static constexpr size_t getSizeMiSemaphoreWait() { return sizeof(MI_SEMAPHORE_WAIT); }
};