mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 08:07:19 +08:00
Remove PatchTokens from KernelInfo
Use KernelDescriptor instead of patchTokens stored in KernelInfo's patchInfo. Removed: SPatchMediaInterfaceDescriptorLoad, SPatchAllocateLocalSurface, SPatchMediaVFEState(slot 0), SPatchMediaVFEState(slot 1), SPatchInterfaceDescriptorData, SPatchSamplerStateArray, SPatchBindingTableState, SPatchDataParameterBuffer, SPatchDataParameterStream, SPatchThreadPayload, SPatchKernelAttributesInfo, SPatchAllocateStatelessPrivateSurface, SPatchAllocateSyncBuffer, SPatchAllocateStatelessConstantMemorySurfaceWithInitialization, SPatchAllocateStatelessGlobalMemorySurfaceWithInitialization, SPatchAllocateSystemThreadSurface. Related-To: NEO-4729 Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
03631ce22b
commit
41f3bd00ff
@@ -33,10 +33,10 @@ class DispatchInfoFixture : public ContextFixture, public ClDeviceFixture {
|
||||
|
||||
pKernelInfo->kernelDescriptor.kernelAttributes.bufferAddressingMode = KernelDescriptor::Stateless;
|
||||
|
||||
pMediaVFEstate = new SPatchMediaVFEState();
|
||||
pMediaVFEstate->PerThreadScratchSpace = 1024;
|
||||
pMediaVFEstate->ScratchSpaceOffset = 0;
|
||||
pKernelInfo->patchInfo.mediavfestate = pMediaVFEstate;
|
||||
SPatchMediaVFEState mediaVFEstate = {};
|
||||
mediaVFEstate.PerThreadScratchSpace = 1024;
|
||||
mediaVFEstate.ScratchSpaceOffset = 0;
|
||||
populateKernelDescriptor(pKernelInfo->kernelDescriptor, mediaVFEstate, 0);
|
||||
|
||||
SPatchAllocateStatelessPrintfSurface printfSurface = {};
|
||||
populateKernelDescriptor(pKernelInfo->kernelDescriptor, printfSurface);
|
||||
@@ -48,7 +48,6 @@ class DispatchInfoFixture : public ContextFixture, public ClDeviceFixture {
|
||||
}
|
||||
void TearDown() override {
|
||||
delete pKernel;
|
||||
delete pMediaVFEstate;
|
||||
delete pProgram;
|
||||
|
||||
ContextFixture::TearDown();
|
||||
@@ -56,7 +55,6 @@ class DispatchInfoFixture : public ContextFixture, public ClDeviceFixture {
|
||||
}
|
||||
|
||||
std::unique_ptr<KernelInfo> pKernelInfo;
|
||||
SPatchMediaVFEState *pMediaVFEstate = nullptr;
|
||||
MockProgram *pProgram = nullptr;
|
||||
MockKernel *pKernel = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user