mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
refactor: improve semaphore programming
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d7db6ac467
commit
def3f2e9ad
@@ -372,26 +372,26 @@ struct EncodeSemaphore {
|
||||
|
||||
static void programMiSemaphoreWait(MI_SEMAPHORE_WAIT *cmd,
|
||||
uint64_t compareAddress,
|
||||
uint32_t compareData,
|
||||
uint64_t compareData,
|
||||
COMPARE_OPERATION compareMode,
|
||||
bool registerPollMode,
|
||||
bool waitMode);
|
||||
bool waitMode,
|
||||
bool useQwordData);
|
||||
|
||||
static void addMiSemaphoreWaitCommand(LinearStream &commandStream,
|
||||
uint64_t compareAddress,
|
||||
uint32_t compareData,
|
||||
uint64_t compareData,
|
||||
COMPARE_OPERATION compareMode,
|
||||
bool registerPollMode);
|
||||
|
||||
static void addMiSemaphoreWaitCommand(LinearStream &commandStream,
|
||||
uint64_t compareAddress,
|
||||
uint32_t compareData,
|
||||
COMPARE_OPERATION compareMode);
|
||||
bool registerPollMode,
|
||||
bool useQwordData);
|
||||
|
||||
static void applyMiSemaphoreWaitCommand(LinearStream &commandStream,
|
||||
std::list<void *> &commandsList);
|
||||
|
||||
static constexpr size_t getSizeMiSemaphoreWait() { return sizeof(MI_SEMAPHORE_WAIT); }
|
||||
|
||||
protected:
|
||||
static void appendSemaphoreCommand(MI_SEMAPHORE_WAIT &cmd, uint64_t compareData, bool registerPollMode, bool useQwordData);
|
||||
};
|
||||
|
||||
template <typename GfxFamily>
|
||||
|
||||
Reference in New Issue
Block a user