refactor: Extract PostSyncType to outer abstract layer

This modification serves to simplify the integration of generated
compute walker structures.

Related-To: NEO-13147

Signed-off-by: Vysochyn, Illia <illia.vysochyn@intel.com>
This commit is contained in:
Vysochyn, Illia
2024-11-19 17:41:53 +00:00
committed by Compute-Runtime-Automation
parent fa58073095
commit 89c3aab321
25 changed files with 80 additions and 58 deletions

View File

@@ -465,7 +465,7 @@ void EncodeDispatchKernel<Family>::encode(CommandContainer &container, EncodeDis
template <typename Family>
template <typename WalkerType>
void EncodeDispatchKernel<Family>::setupPostSyncForRegularEvent(WalkerType &walkerCmd, const EncodeDispatchKernelArgs &args) {
using POSTSYNC_DATA = typename WalkerType::PostSyncType;
using POSTSYNC_DATA = decltype(Family::template getPostSyncType<WalkerType>());
auto &postSync = walkerCmd.getPostSync();
@@ -903,8 +903,8 @@ inline size_t EncodeDispatchKernel<Family>::getInlineDataOffset(EncodeDispatchKe
template <typename Family>
template <typename WalkerType>
void EncodeDispatchKernel<Family>::forceComputeWalkerPostSyncFlushWithWrite(WalkerType &walkerCmd) {
using PostSyncType = typename WalkerType::PostSyncType;
using OperationType = typename PostSyncType::OPERATION;
using POSTSYNC_DATA = decltype(Family::template getPostSyncType<WalkerType>());
using OperationType = typename POSTSYNC_DATA::OPERATION;
if (debugManager.flags.ForceComputeWalkerPostSyncFlushWithWrite.get() != -1) {
auto &postSync = walkerCmd.getPostSync();