Introduce StreamProperties

Split programVfeState function.

Related-To: NEO-4940, NEO-4574


Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
Filip Hazubski
2021-04-01 18:26:29 +00:00
committed by Compute-Runtime-Automation
parent 2f6d1c5f90
commit 77b39ea3df
13 changed files with 126 additions and 62 deletions

View File

@@ -34,6 +34,7 @@
#include "level_zero/tools/source/metrics/metric.h"
#include "pipe_control_args.h"
#include "stream_properties.h"
#include <limits>
#include <thread>
@@ -421,14 +422,15 @@ void CommandQueueHw<gfxCoreFamily>::programFrontEnd(uint64_t scratchAddress, uin
auto &hwInfo = device->getHwInfo();
auto &hwHelper = NEO::HwHelper::get(hwInfo.platform.eRenderCoreFamily);
auto engineGroupType = hwHelper.getEngineGroupType(csr->getOsContext().getEngineType(), hwInfo);
NEO::PreambleHelper<GfxFamily>::programVFEState(&commandStream,
auto pVfeState = NEO::PreambleHelper<GfxFamily>::getSpaceForVfeState(&commandStream, hwInfo, engineGroupType);
NEO::StreamProperties emptyProperties{};
NEO::PreambleHelper<GfxFamily>::programVfeState(pVfeState,
hwInfo,
perThreadScratchSpaceSize,
scratchAddress,
device->getMaxNumHwThreads(),
engineGroupType,
NEO::AdditionalKernelExecInfo::NotApplicable,
NEO::KernelExecutionType::NotApplicable);
emptyProperties);
csr->setMediaVFEStateDirty(false);
}