Update 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-03-31 14:11:31 +00:00
committed by Compute-Runtime-Automation
parent e1884fd38f
commit 31b7fcf653
18 changed files with 102 additions and 54 deletions

View File

@@ -418,12 +418,15 @@ template <GFXCORE_FAMILY gfxCoreFamily>
void CommandQueueHw<gfxCoreFamily>::programFrontEnd(uint64_t scratchAddress, uint32_t perThreadScratchSpaceSize, NEO::LinearStream &commandStream) {
using GfxFamily = typename NEO::GfxFamilyMapper<gfxCoreFamily>::GfxFamily;
UNRECOVERABLE_IF(csr == nullptr);
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,
device->getHwInfo(),
hwInfo,
perThreadScratchSpaceSize,
scratchAddress,
device->getMaxNumHwThreads(),
csr->getOsContext().getEngineType(),
engineGroupType,
NEO::AdditionalKernelExecInfo::NotApplicable,
NEO::KernelExecutionType::NotApplicable);
csr->setMediaVFEStateDirty(false);