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