refactor: Passing information about the engine

Extension of the interface with information
about the engine type passed to the function

Related-To: NEO-10678

Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>
This commit is contained in:
Andrzej Koska
2024-04-19 14:20:27 +00:00
committed by Compute-Runtime-Automation
parent 31b2dcfe57
commit ae139aeffd
73 changed files with 296 additions and 251 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2019-2023 Intel Corporation
* Copyright (C) 2019-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -30,13 +30,14 @@ void PreambleHelper<GfxFamily>::programGenSpecificPreambleWorkArounds(LinearStre
}
template <typename GfxFamily>
void PreambleHelper<GfxFamily>::programSemaphoreDelay(LinearStream *pCommandStream) {
void PreambleHelper<GfxFamily>::programSemaphoreDelay(LinearStream *pCommandStream, bool isBcs) {
if (debugManager.flags.ForceSemaphoreDelayBetweenWaits.get() > -1) {
uint32_t valueOfNewSemaphoreDelay = debugManager.flags.ForceSemaphoreDelayBetweenWaits.get();
LriHelper<GfxFamily>::program(pCommandStream,
RegisterOffsets::semaWaitPoll,
valueOfNewSemaphoreDelay,
true);
true,
isBcs);
};
}
@@ -55,11 +56,11 @@ size_t PreambleHelper<GfxFamily>::getAdditionalCommandsSize(const Device &device
template <typename GfxFamily>
void PreambleHelper<GfxFamily>::programPreamble(LinearStream *pCommandStream, Device &device, uint32_t l3Config,
GraphicsAllocation *preemptionCsr) {
programL3(pCommandStream, l3Config);
GraphicsAllocation *preemptionCsr, bool isBcs) {
programL3(pCommandStream, l3Config, isBcs);
programPreemption(pCommandStream, device, preemptionCsr);
programGenSpecificPreambleWorkArounds(pCommandStream, device.getHardwareInfo());
programSemaphoreDelay(pCommandStream);
programSemaphoreDelay(pCommandStream, isBcs);
}
template <typename GfxFamily>