mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
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:
committed by
Compute-Runtime-Automation
parent
fa58073095
commit
89c3aab321
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user