mirror of
https://github.com/intel/compute-runtime.git
synced 2025-06-28 17:58:30 +08:00

Related-To: NEO-4227 Change-Id: If79559b6a7fbf71d76983bfb9bf518d902fc235a Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
24 lines
655 B
C++
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
|