Files
compute-runtime/shared/test/unit_test/helpers/ult_hw_helper.h
Milczarek, Slawomir beb52c58b1 Moved additional synchronization helpers to base inl file
Related-To: NEO-4227

Change-Id: If79559b6a7fbf71d76983bfb9bf518d902fc235a
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2020-03-11 13:51:41 +01:00

24 lines
655 B
C++

/*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/helpers/hw_helper.h"
namespace NEO {
template <typename GfxFamily>
struct UltMemorySynchronizationCommands : MemorySynchronizationCommands<GfxFamily> {
static size_t getExpectedPipeControlCount(const HardwareInfo &hwInfo) {
return (MemorySynchronizationCommands<GfxFamily>::getSizeForPipeControlWithPostSyncOperation(hwInfo) -
MemorySynchronizationCommands<GfxFamily>::getSizeForAdditonalSynchronization(hwInfo)) /
sizeof(typename GfxFamily::PIPE_CONTROL);
}
};
} // namespace NEO