Store SLM sizes per root device in Kernel

reduce usages of getDefaultKernelInfo

Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-12-18 14:47:42 +00:00
committed by Compute-Runtime-Automation
parent 09bdd2ad09
commit be7ae13911
15 changed files with 48 additions and 39 deletions

View File

@ -40,7 +40,7 @@ class DispatchInfoFixture : public ContextFixture, public ClDeviceFixture {
pProgram = new MockProgram(pContext, false, toClDeviceVector(*pClDevice));
pKernel = new MockKernel(pProgram, MockKernel::toKernelInfoContainer(*pKernelInfo, rootDeviceIndex));
pKernel->slmTotalSize = 128;
pKernel->kernelDeviceInfos[rootDeviceIndex].slmTotalSize = 128;
}
void TearDown() override {
delete pKernel;
@ -56,7 +56,7 @@ class DispatchInfoFixture : public ContextFixture, public ClDeviceFixture {
SPatchMediaVFEState *pMediaVFEstate = nullptr;
SPatchAllocateStatelessPrintfSurface *pPrintfSurface = nullptr;
MockProgram *pProgram = nullptr;
Kernel *pKernel = nullptr;
MockKernel *pKernel = nullptr;
};
typedef Test<DispatchInfoFixture> DispatchInfoTest;