2020-02-05 03:26:04 +08:00
|
|
|
/*
|
2022-07-21 22:28:10 +08:00
|
|
|
* Copyright (C) 2020-2022 Intel Corporation
|
2020-02-05 03:26:04 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/helpers/hw_helper.h"
|
2020-02-05 03:26:04 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
2020-02-17 19:45:24 +08:00
|
|
|
struct UltMemorySynchronizationCommands : MemorySynchronizationCommands<GfxFamily> {
|
2020-02-05 03:26:04 +08:00
|
|
|
static size_t getExpectedPipeControlCount(const HardwareInfo &hwInfo) {
|
2022-08-19 23:56:22 +08:00
|
|
|
return (MemorySynchronizationCommands<GfxFamily>::getSizeForBarrierWithPostSyncOperation(hwInfo, false) -
|
2020-02-17 19:45:24 +08:00
|
|
|
MemorySynchronizationCommands<GfxFamily>::getSizeForAdditonalSynchronization(hwInfo)) /
|
2020-02-05 03:26:04 +08:00
|
|
|
sizeof(typename GfxFamily::PIPE_CONTROL);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace NEO
|